Translate Mozilla Fluent .ftl files
Fluent messages can hold variables, references to terms and whole select expressions. KAERIS translates every text part and keeps the structure around it, then checks the variables and term references.
How a Fluent file is built
Messages are id = text, with { $name } variables, { -brand-name } term references, attributes (.title) and select expressions with [one] variants and a * default. Comments start with #.
# Shown on the home screen welcome = Welcome back, { $name }! emails = { $count -> [one] You have { $count } new email. *[other] You have { $count } new emails. } -brand-name = Firefox about = About { -brand-name }
What to watch for in Fluent translations
Variables and terms
{ $name }and{ -brand-name }must stay. In the real run below both did.Select expressions
Each variant is its own text to translate. The
*default stays marked; in the parse above the two email variants are separate strings.Terms
A term such as
-brand-nameis an entry of its own; a translation without it is reported as missing.Comments
Comments of the source are re-emitted with the file.
A real run: translated to German and checked
A real run, 27 October 2026, nothing edited by hand: kaeris translate en.ftl --langs de with kaeris 0.2.35, 2.1 seconds, model google/gemini-2.5-flash-lite, the free-tier default. Below, the German file it wrote and what kaeris check says about it.
# Shown on the home screen welcome = Willkommen zurück, { $name }! emails = { $count -> [one] Sie haben { $count } neue E-Mail. *[other] Sie haben { $count } neue E-Mails. } -brand-name = Firefox about = Über { -brand-name }
$ kaeris check --source en.ftl --langs de ✓ de: complete & placeholder-safe ✓ all locales complete & placeholder-safe
What KAERIS does with it
Structure kept
Messages, terms, attributes and select variants are walked and written back in the same shape.
References counted
A lost
{ $name }or{ -term }is found without a model.Free check for this format
The free check on /check reads this format and runs without a key or an account. The terminal command
kaeris checkreads it too: it takes all 13 formats since kaeris 0.2.35, with the same rules and nothing sent anywhere.
Run it in three steps
Install the CLI
Run
pip install kaeris.Translate the file
Run
kaeris translate locales/en/app.ftl --langs de,ja.Check the result
Upload the source and the translated .ftl on the free check page.
pip install kaeris kaeris translate locales/en/app.ftl --langs de,ja --verify
Questions
Are select expressions supported?
Yes. Each variant is translated on its own and the structure is written back.
What about terms like -brand-name?
They are entries of their own and are compared with the source; a translation that leaves one out is reported as a missing key.
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 locales/en/app.ftl --langs de,ja. The GitHub Action runs the same translation in a pull request. CLI docs · GitHub Action
Keep going
CLI reference · Check reference · Translate in the browser · Free check · Convert formats · Pseudo-localization
Other formats: JSON · YAML · .po · ARB · XLIFF · .strings · .xcstrings · .properties · .resx · CSV · Markdown · Android XML
Framework guides: react-i18next · next-intl · vue-i18n · Flutter · iOS · Android