A bit more clarity

666d5712c7c762f37f1dbef92cbc6f15fa51ab58

Yokayo <nonameutubecomm@gmail.com>

1 files changed, +3 -1Showing whitespace changes
public/scripts/utils.js+3 -1
@@ -28,6 +28,7 @@ export const PAGINATION_TEMPLATE = function() {
2828 translated_of = 'of';
2929 }
3030 } catch (e) {
31+ console.error(e);
3132 translated_of = 'of';
3233 }
3334 return `<%= rangeStart %>-<%= rangeEnd %> ${translated_of} <%= totalNumber %>`;
@@ -40,8 +41,9 @@ export const localizePagination = function(container) {
4041 try {
4142 option.text(option.text().replace('/ page', translate('/ page')));
4243 } catch (e) {
44+ // means that i18n facilities aren't ready, so there's no point doing anything
4345 console.error(e);
4446 breakreturn;
4547 }
4648 }
4749 container.find('[title="Next page"]').attr('title', translate('Next page'));