Skip to content

Handle i18n in javascript #3147

@laritakr

Description

@laritakr

Descriptive summary

There are many cases throughout Hyrax where text is hardcoded in javascript code (i.e. placeholders, error messages, labels, etc). This prevents the ability to fully support i18n. We need to:

  1. Determine a pattern to handle i18n for javascript code.
  2. Refactor some javascript code in this pattern, and create documentation of the pattern for future reference.

Rationale

Users expect pages to be fully translated when they select a new language.
Javascript use is increasing, and developers don't know how to fix the code that exists. A coordinated solution is more maintainable.

Several Examples

User Search javascript
Editor javascript

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions