You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timeago.js file currently only exists in the lib/assets/javascripts/locale/en_GB directory and contains a lot of hard-coded strings that are not being handled properly for other locales.
There may be ways to handle it by adding a translated version to the other language directories in lib/assets/javascripts/locale and then updating lib/assets/javascripts/utils/timeagoFactory.js to grab the current locale and import the appropriate file.
A more convenient approach though might be to place those hardcoded strings into the views/layouts/application.html.erb JSON section that gets fed into lib/assets/javascripts/constants.js so that they're picked up and added to the app.pot file and handled like our other translations.
The text was updated successfully, but these errors were encountered:
The timeago.js file currently only exists in the
lib/assets/javascripts/locale/en_GB
directory and contains a lot of hard-coded strings that are not being handled properly for other locales.There may be ways to handle it by adding a translated version to the other language directories in
lib/assets/javascripts/locale
and then updatinglib/assets/javascripts/utils/timeagoFactory.js
to grab the current locale and import the appropriate file.A more convenient approach though might be to place those hardcoded strings into the
views/layouts/application.html.erb
JSON section that gets fed intolib/assets/javascripts/constants.js
so that they're picked up and added to the app.pot file and handled like our other translations.The text was updated successfully, but these errors were encountered: