I18next
i18next is a popular internationalization library for JavaScript environments, including browsers and Node.js. LingoHub supports the JSON resource files used by this library.
Format
- The JSON structure must follow the standards documented by i18next.
- Keys and values must be quoted according to standard JSON specifications.
- The default placeholder syntax is
{{ placeholder }}. - LingoHub supports both flat and hierarchical (nested) JSON structures.
LingoHints can be included in a comment attribute:
{
"title": "Title",
"_title.comment": "<lh>{\"status\": \"TRANSLATED\",\"qc\": {\"min\": \"3\",\"max\": \"20\"},\"labels\": [\"q3-2024\"],\"not_translatable\": false}</lh>"
} Example
Flat structure
{
"title": "Titel",
"body_paragraph": "Dies ist ein Paragraph.",
"users_form_submit": "Speichern",
"users_salutation": "Hallo {{name}}"
}Hierarchical structure
{
"title": "Titel",
"body": {
"paragraph": "Dies ist ein Paragraph."
},
"users": {
"form": {
"submit": "Speichern"
},
"salutation": "Hallo {{name}}"
}
}References
Updated about 1 month ago
