This is a generic nested JSON i18n format that can be used for any type of software project where you want json localization.
You can either import and export the localizable json files manually on the dashboard or you can automate your json translation process with the GL Strings Localization CLI.
| Specification | Value |
|---|---|
| File Extension | .json |
| CLI Format Key | nested_json |
| CLI Supported | true |
| SDK Supported | false |
| String Description Supported | true |
| Pluralization Supported | true |
{
"empty_string_key": "",
"with_description_key": "This key has a description in some file-formats.",
"with_line_break_key": "This key has a line break\nin it.",
"nested_key": {
"level_one_a": {
"level_two": "A deeply nested key."
},
"level_one_b": "A nested key."
},
"plural_key": {
"one": "Plural key one",
"other": "Plural key other",
"zero": "Plural key zero"
},
"array_key": [
"first entry",
"second entry",
"third entry"
],
"simple_key": "Most basic translation."
}
During file imports, parts of string IDs might be wrapped in quotes if the ID contains a . (dot). You can find more information on wrapped string IDs here.