medic / translation-checker

Check translations from .properties files with Mustache placeholders markup or messageformat syntax.
https://www.npmjs.com/package/@medic/translation-checker
GNU Affero General Public License v3.0
2 stars 0 forks source link

Add an error type for keys that are missing in language files #9

Closed garethbowen closed 3 months ago

garethbowen commented 3 months ago

Currently we use English as the default properties file for checking available placeholders. We should also use it as the official source of translation keys, so if any other language is missing a key it throws an error.

Because this is a breaking change, default it to false, but provide the option to turn it on.

Ideally the API would take the default language rather than assuming it's English but that can be done as a separate issue.