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
Check these values
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.
Your result
How it was worked out
How to check a translated locale file
- 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.
- Type the language of the translation (such as pl or ar), so the plural keys it needs can be checked.
- 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.