What Localizator reads and writes, with an example of each.
Keys and nesting
Keys are strings such as home.title. Dots group them: in nested JSON, home.title and home.empty become an object home with two members. That's why a JSON file you import can't have a dot inside a key name: "home.title" would be ambiguous, so import asks for {"home": {"title": …}} instead.
JSON
The format of most web and React Native apps. One file per language.
Nested (the default for export and download):
{
"home": {
"title": "Your cars",
"greeting": "Welcome back, {name}!"
},
"photos": {
"count": "{count, plural, one {# photo} other {# photos}}"
}
}Flat (only as a download, with nested=false; import refuses it):
{
"home.title": "Your cars",
"home.greeting": "Welcome back, {name}!",
"photos.count": "{count, plural, one {# photo} other {# photos}}"
}ARB (Flutter)
Flutter's format: JSON with the locale in @@locale and optional @key entries holding descriptions.
{
"@@locale": "de",
"homeTitle": "Deine Autos",
"@homeTitle": {
"description": "Title of the home screen"
}
}On import, @ entries are read as descriptions and not as keys. On export, key descriptions are written as @key entries.
CSV (export, Google Drive)
All languages in one sheet: key, description, then one column per language, source first.
key,description,en,de,fr
home.title,,Your cars,Deine Autos,Vos voitures
home.empty,Shown when the dealer has no vehicles,No cars yet.,Noch keine Autos.,CSV is export only: to bring translations in, import JSON or ARB.
Glossary CSV
For importing a glossary: term, one column per locale, and optionally notes and doNotTranslate (true or false).
term,de,fr,notes,doNotTranslate
CarCutter,,,Brand name,true
dealer,Händler,concessionnaire,,falseTranslation memory files
Translation memory takes JSON, ARB or CSV. Upload the source language's file together with the translations; entries are paired by key. A CSV holds several languages at once: a key column (also accepted: id, name) and a column per locale.