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:
- Determine a pattern to handle i18n for javascript code.
- 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
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:
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