Angular
LingoHub supports Angular applications localized with the Angular Translate module.
Angular Translate defines translations using JSON files. LingoHub manages these files, which are typically loaded using $translateProvider.useStaticFilesLoader.
Format
- The format is based on JSON.
- Files contain key-value pairs representing translation keys and their corresponding values.
- LingoHub follows the same processing rules as standard JSON files.
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": "Welcome to our application",
"subheader": "Localization made easy with LingoHub",
"button": {
"save": "Save changes",
"cancel": "Cancel"
}
}To consider
Processing and export rules for Angular files are identical to those for JSON files. This includes support for nested objects and character escaping.
References
Updated about 1 month ago
