CLI tool for validating Chrome extension localization files (`_locales/*/messages.json`). Version 0.1.0 is the latest stable release. It checks for missing keys across locales and validates locale directory names against Google Chrome's supported locales list. Integrates easily with CI/CD pipelines, supporting a `--strict` flag to treat warnings as errors. Lightweight alternative to rolling custom locale validation scripts.
npm install chromex-locale-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs locale validation on the _locales directory using English as the base language, with strict mode enabled to treat warnings as errors.
Use absolute path or relative path from project root: --localesDir ./src/_locales
Use 'en', 'de', 'ja', etc. See Chrome supported locales.
Upgrade to >=0.0.3 or apply locale list from Chrome manually.
Add --strict argument to maintain same behavior, or update CI to handle exit codes.
Rename directory to 'en' or use a valid BCP 47 tag like 'en-US'? Chrome uses 'en', 'en_US' is invalid. Check Chrome documentation.
Specify correct path: npx chromex-locale-lint --localesDir ./src/_locales
No dependency data recorded yet.