Validating messages
To ensure quality and completeness of your messages, you can use i18n-check.
This CLI helps you validate against issues like:
- Missing translations in target locales
- Inconsistent usage of ICU arguments across translations
Usage:
i18n-check --source en --locales messages
Output:
Found missing keys!
┌────────────────────┬───────────────────────────────┐
│ file │ key │
├────────────────────┼───────────────────────────────┤
│ messages/de.json │ NewsArticle.title │
└────────────────────┴───────────────────────────────┘
💡
You can also use the --unused
flag to detect keys that are defined in your messages, but are not referenced anywhere in your codebase (currently experimental).