Commit Graph

2 Commits

Author SHA1 Message Date
Sam Atkins
8f8b7f0fbf Check that all uses of i18n() use keys that exist
If code uses `i18n('foo')` and 'foo' is not in the dictionary for the en
translation, then this script will now report it as an error. This has
already helped catch a few mistakes.
2024-04-01 12:12:31 +01:00
Sam Atkins
3f27608850 Add a script to check our translation files are valid
Checks the following:
- Translation files are valid JS
- Each translation file is registered in translations.js
- Each translation's code matches its name
- Translation dictionaries only contain keys that exist in the English
  translation.
2024-03-21 10:53:06 +00:00