YAML locale files

Translate YAML localization dictionaries, including Rails i18n files with a language root key. Source comments become translator context and nested string keys remain nested in output.

Extensions
.yml, .yaml
Output model
One locale file per target language

en.yml

yaml
en:
  checkout:
    # Button shown after payment succeeds
    done: "Done"
    greeting: "Hello, %{name}"

de.yml

yaml
de:
  checkout:
    done: Fertig
    greeting: Hallo, %{name}

What autoglot preserves

  • Nested key structure and Rails-style language root keys
  • Comments as translator context for the following string
  • ICU messages and interpolation placeholders
  • Existing target keys when locale files are merged

Only string leaves are translated. Numeric values, booleans, arrays of non-string data, and configuration values remain outside the translation set.