Chki18n
A command-line tool that checks translation files against i18n conventions, published for JavaScript, Dart and Python. It reports missing keys, duplicated values and other common mistakes, and runs in CI as readily as on a laptop.
About this project
Chki18n is a command-line tool that checks translation files against the conventions an internationalised project depends on. It reads the locale files a project already has and reports what is wrong with them, which is a check that otherwise happens only when a missing string reaches a screen.
It reports as errors what will break the interface: a file that cannot be parsed, a key present in one language and missing in another, and an interpolation placeholder that does not match the primary locale. It reports as warnings what will merely embarrass — an empty value, two keys carrying the same text, a value identical to the source language and therefore untranslated, and a key no other language still uses.
It runs as a command, in a CI job or from your own code, and is published for JavaScript, Dart and Python, all three running the same checks in the same order and printing the same report. It reads JSON translation files today, and it checks rather than translates: nothing in a file is rewritten by running it.
Features
Documentation site
TypeScript types
Verified by tests
Cross-platform
Command-line interface
