Skip to content

Make the timeago.js strings translatable #1974

@briri

Description

@briri

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions