Ember

Multiple Ember.js libraries exist for localizing Ember applications. LingoHub supports the most popular libraries:

Both frameworks typically use JavaScript or JSON files to define translations. LingoHub manages these files according to standard JSON rules.

Format

  • The format is based on JSON.
  • LingoHub follows the same processing rules as standard JSON files.
  • For JavaScript files, LingoHub handles the underlying JSON data structure.

LingoHints can be included in a comment:

{
    "title": "Title",
    "_title.comment": "<lh>{\"status\": \"TRANSLATED\",\"qc\": {\"min\": \"3\",\"max\": \"20\"},\"labels\": [\"q3-2024\"],\"not_translatable\": false}</lh>"
}  

Example

Example files are available on GitHub:

{
  "header": {
    "title": "Welcome",
    "subtitle": "Localization simplified"
  },
  "auth": {
    "login": "Sign in",
    "logout": "Sign out"
  }
}

To consider

The processing and export rules for Ember localization files are identical to those for JSON files.


References