Translate

Translate config/locales/en.yml, then check every line

Rails YAML starts with the locale as the root key and uses %{name} variables and one/other plural keys. Leave en: at the top of the German file, or translate %{count}, and the I18n gem shows English or a raw key. KAERIS writes de.yml with the right root and the variables intact.

The root key changes, the variables do not

en: becomes de:. Plural keys stay in place.

Beforeconfig/locales/en.yml
en:
  welcome: "Welcome back, %{name}!"
  cart:
    zero: "Your cart is empty"
    one: "%{count} item"
    other: "%{count} items"
  save: "Save changes"
Afterconfig/locales/de.yml
de:
  welcome: "Willkommen zurück, %{name}!"
  cart:
    zero: "Dein Warenkorb ist leer"
    one: "%{count} Eintrag"
    other: "%{count} Einträge"
  save: "Änderungen speichern"

What KAERIS does with it

Questions

Languages with more plural forms?

Russian or Polish need few and many. Add those keys and they get translated; if one is missing, the check says so.

Do YAML anchors work?

Yes, within limits: a file whose anchors expand into a huge number of keys is refused.

Is it free?

Yes, without an account: 10,000 characters per file and up to 8 languages per run. A free API key raises the file limit to 50,000 characters. Lifetime is $79 once, on your own OpenRouter key; monthly plans start at $19. Pricing

Can I run it from the terminal or in CI?

Yes. pip install kaeris, then kaeris translate with your file and --langs de,ja. A GitHub Action opens a pull request when new keys land. Docs