This is exactly what i18n-validate does. Standalone CLI for CI pipelines:
i18n-validate
# In CI (GitHub Actions, GitLab CI, etc.): npx @i18n-agent/i18n-validate --base src/locales/en.json --targets src/locales/*.json --min-coverage 90 --fail-on-error
It checks: missing keys, extra/stale keys, broken placeholders, CLDR plural completeness, parse errors. Outputs terminal, JSON, or JUnit XML.
For pre-translation testing, add i18n-pseudo to generate pseudo-localized files that catch layout/hardcoding issues before real translation.
i18n-pseudo
Both support 32 formats (JSON, YAML, PO, XLIFF, ARB, strings.xml...). Zero-config auto-detect.
Install: npm install -g @i18n-agent/i18n-validate @i18n-agent/i18n-pseudo
npm install -g @i18n-agent/i18n-validate @i18n-agent/i18n-pseudo
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is exactly what
i18n-validatedoes. Standalone CLI for CI pipelines:It checks: missing keys, extra/stale keys, broken placeholders, CLDR plural completeness, parse errors. Outputs terminal, JSON, or JUnit XML.
For pre-translation testing, add
i18n-pseudoto generate pseudo-localized files that catch layout/hardcoding issues before real translation.Both support 32 formats (JSON, YAML, PO, XLIFF, ARB, strings.xml...). Zero-config auto-detect.
Install:
npm install -g @i18n-agent/i18n-validate @i18n-agent/i18n-pseudo