JSON locale files

Translate standard JSON locale dictionaries used by i18next, next-intl, React Intl, and other web frameworks. Nested and flat key structures both round-trip to one file per target language.

Extensions
.json
Output model
One locale file per target language

en.json

json
{
  "navigation": {
    "welcome": "Welcome, {{name}}",
    "items": "{count, plural, one {# item} other {# items}}"
  }
}

de.json

json
{
  "navigation": {
    "welcome": "Willkommen, {{name}}",
    "items": "{count, plural, one {# Element} other {# Elemente}}"
  }
}

What autoglot preserves

  • Nested dictionaries and dotted translation keys
  • Mustache, ICU, and common JavaScript interpolation tokens
  • Existing target keys when translated files are updated
  • Deterministic, readable JSON output

JSON5 is not currently accepted. Source files must be valid JSON and conventionally use a language filename such as en.json so output paths can become de.json, fr.json, and similar.