TolkBot for i18next and react-i18next

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.

locales/en/common.jsonyou merged this
"items_one": "{{count}} item",
"items_other": "{{count}} items"
locales/pl/common.jsonTolkBot's pull request
"items_one": "{{count}} element",
"items_few": "{{count}} elementy",
"items_many": "{{count}} elementów",
"items_other": "{{count}} elementu"
locales/ja/common.jsonTolkBot's pull request
"items_other": "{{count}} 件の項目"
English has two keys. Polish needs four and Japanese one, and {{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

  1. Connect the repo

    Sign in with GitHub, start the trial and install the GitHub App on the repository.

  2. 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.

  3. Merge as usual

    Each push that changes an English file updates one pull request per language. Mention @tolkbot on a line to correct it.

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 init call and its supportedLngs stay yours.
Can my resources be TypeScript files?
Yes, in a locale folder such as locales/ or i18n/. A file that exports its strings with export default or export const en, with as const or satisfies, 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.