Toolvito

Calculates on this device. File exports run online.

React Native Localization Validator

Paste the locale file of your source language (such as en.json) and a translated one. The page lists missing and empty keys, placeholders that differ ({{name}}, %{name}, {name}) and the plural keys each language needs. Paste your components to find keys the code uses that a locale file lacks, and keys no code uses.

Enter your values

Paste the locale file of your source language and a translated one. Missing and empty keys, placeholders that differ ({{name}}, %{name}, {name}) and the plural keys the language needs (such as _few and _many in Polish) are listed.

Your values

Such as de, pl, ar or pt-BR: needed to check the plural keys.

More options

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

Check the whole app project (every language, every key in the code)

Check the whole app project: every language, every key in the code

Choose a ZIP of your app (the locales folder and the src folder; node_modules is skipped). Every language is checked against the source language, and every key the code uses against the source files. The report is a CSV file, with a ZIP of the missing keys for each language.

Or drop files here. ZIP, JSON, ARB, YAML, YML, PROPERTIES, PO, POT, XLF, XLIFF, XML, STRINGS, JS, JSX, TS, TSX, DART or PLIST, up to 200 files, 200 MB each at most.

    More options

    The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to check a translated locale file

    1. Paste the source JSON (such as en.json) and the translated one (such as de.json), or open them. Nested objects and flat keys with dots both work.
    2. Type the language of the translation (such as pl or ar), so the plural keys it needs can be checked.
    3. Press Check the translation. Copy the missing keys file with the source texts to send for translation.

    Keys the code uses

    Choose Find keys the code uses but the locale file lacks, paste your screens and components and a locale file. Calls such as t('home.title'), i18n.t("…"), I18n.t('…'), intl.formatMessage({ id: '…' }), <Trans i18nKey="…"> and <FormattedMessage id="…"> are found; t('common:save') looks in the namespace common. A key the code uses that the file lacks would show as the raw key in the app. Keys put together while the app runs (t(errors.${code})) are listed to check by hand. For a whole app, send the project ZIP in the box below.

    Plural keys in React Native

    • i18next (react-i18next) 21 and later: key_one, key_other, and key_few, key_many … for languages that need them; t('key', { count }) picks the form.
    • i18n-js: an object { one, other } (and the other forms) under the key; %{count} in the texts.
    • react-intl / FormatJS: one ICU message, {count, plural, one {…} other {…}}.
    • The forms each language needs come from Unicode CLDR as your browser has them.

    Limits you should know

    • Keys are found in code where they are written as text in quotes; a key made from variables cannot be known before the app runs.
    • A key no pasted file uses may be used by another file: check the whole project in the box below.

    Privacy

    Files and code are checked in your browser. Only what you choose in the box below is sent to the Toolvito server, to be checked there. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    Related tools