Translate your i18next locale files with AI, in pull requests.
Add a key to locales/en/common.json and merge. TolkBot opens a pull request for every other locale, with {{name}} intact, plural keys in each language’s forms and your glossary applied.
14 days free. Starting takes a card. From $9 a month + VAT after that.
{{count}} keeps both braces in each.What TolkBot does in an i18next project
Finds your setup
It sees react-i18next or i18next in package.json, reads the languages and namespaces off your init call, and finds the locale files. There is no config to write.
Both braces, every time
{{name}} interpolates and {name} prints as text. A brace the model lost is put back, and a dropped placeholder is refused and translated again.
Plural keys per language
Polish gets items_few and items_many from English’s two keys. Japanese gets items_other alone, and no missing items_one is reported.
One file per namespace
common.json and dashboard.json are translated as the separate files they are, each in its own key order and indent.
Translates only what changed
A merge that adds three keys translates three keys. A string TolkBot has translated before comes from translation memory and costs no credits.
Checks it in CI
npx tolkbot validate knows {{name}}, $t(key) and the <0> tags of Trans. It runs offline and exits 1 when a translation drops one.
Set it up
Connect the repo
Sign in with GitHub, start the trial and install the GitHub App on the repository.
Create the project
TolkBot detects i18next and the pattern, such as
locales/{locale}/{namespace}.json. Choose the languages, and keep the translations you already have.Merge as usual
Each push that changes an English file updates one pull request per language. Mention
@tolkboton a line to correct it.
Questions
All questions →- Do I have to change my i18next setup?
- No. TolkBot reads the locale files where they are and writes each in its own indent and key order. Its commits touch only the target languages’ files, so your
initcall and itssupportedLngsstay yours. - Can my resources be TypeScript files?
- Yes, in a locale folder such as
locales/ori18n/. A file that exports its strings withexport defaultorexport const en, withas constorsatisfies, is read and written back in its own style. - What does a change cost?
- Credits are spent when a model translates a string, in proportion to what that call cost. A string served from translation memory costs nothing, so a repeated string, a reverted change or a new locale file full of known strings is free.
Merge in English. Ship every locale.
14 days free. Starting takes a card. From $9 a month + VAT after that.