mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
A bit more clarity
This commit is contained in:
@ -28,6 +28,7 @@ export const PAGINATION_TEMPLATE = function() {
|
|||||||
translated_of = 'of';
|
translated_of = 'of';
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
translated_of = 'of';
|
translated_of = 'of';
|
||||||
}
|
}
|
||||||
return `<%= rangeStart %>-<%= rangeEnd %> ${translated_of} <%= totalNumber %>`;
|
return `<%= rangeStart %>-<%= rangeEnd %> ${translated_of} <%= totalNumber %>`;
|
||||||
@ -40,8 +41,9 @@ export const localizePagination = function(container) {
|
|||||||
try {
|
try {
|
||||||
option.text(option.text().replace('/ page', translate('/ page')));
|
option.text(option.text().replace('/ page', translate('/ page')));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
// means that i18n facilities aren't ready, so there's no point doing anything
|
||||||
console.error(e);
|
console.error(e);
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
container.find('[title="Next page"]').attr('title', translate('Next page'));
|
container.find('[title="Next page"]').attr('title', translate('Next page'));
|
||||||
|
Reference in New Issue
Block a user