Chki18n
A command-line tool that checks translation files against i18n conventions. 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 Node, ships as a modern ESM package with TypeScript declarations, and reads JSON translation files today. It checks and does not translate: nothing in a file is rewritten by running it.
Features
TypeScript types
Verified by tests
Command-line interface
