Calculates on this device. File exports run online.
Localization Validator
Paste or open a source language file and its translation. The page lists every key that is missing, empty or not translated, placeholders that differ, broken ICU messages and the plural forms the language needs, with the line of each one. Test ICU messages, see plural rules, pseudo-localize a file and check language tags too.
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 translation
- Paste the source file (such as en.json or strings.xml) in Source and the translated one in Translation, or open them.
- Type the language of the translation (such as pl or pt-BR) so that its plural forms can be checked; .po, .arb and XLIFF files may say it themselves.
- Press Check the translation. Each problem has its key, level (error, warning or note), what is wrong and the line in the translation.
- Copy the missing keys file: it has the source texts of every missing key, in the format of your files, ready to send for translation.
What is checked
- Keys: missing, extra (old or misspelled), empty, duplicate, and texts that are the same as the source.
- Placeholders: {{name}} (i18next), %{name} (i18n-js, Rails), {name} and ICU arguments (FormatJS, Flutter, ICU), %s, %1$s, %d, %@ (printf, Android, iOS), ${name} and {0} (Java). Each one must appear as often as in the source.
- Plural forms: each language needs its own (English one and other; Polish one, few, many and other; Arabic six). The forms come from Unicode CLDR as your browser has them, with example numbers for each.
- ICU MessageFormat syntax: braces, plural and select choices, the required "other".
- Markup tags, spaces at the ends, length (longer than the source by a factor, or a fixed limit), fuzzy gettext entries.
ICU messages, plural rules and language tags
- Test an ICU message: type the message and values; the page formats it in the language, and writes it once for each plural form.
- Plural rules: the forms of a language and the form of each number you type.
- Language tags: checks BCP 47 tags (en-US, zh-Hant-TW, sr-Latn), writes them in standard form, and shows how numbers and dates are written in each locale.
- Pseudo-localize: writes a test version of a file with accented, longer texts in [ ], keeping placeholders and tags, to find texts that are not translated or are cut off.
Limits you should know
- Plural forms come from the browser: an old browser may know fewer languages.
- Placeholders are compared by name; a translation may need to change their order, which is allowed.
- The meaning and quality of a translation are not judged.
Privacy
Files are checked in your browser. Only the files you choose in the box below are 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.