Project scripts live in this folder and are invoked via npm scripts.
This file documents script implementation details in scripts/.
For the full npm command reference and usage workflows, see docs/SCRIPTS.md.
Invoked via npm run check:i18n.
Part of the i18n system. Validates that i18n locale files stay in sync:
-
Key parity: Ensures
src/client/locales/en.json,ar.json, andfr.jsonhave identical key sets. No locale may have missing or extra keys compared to the base (en). -
Used ids exist: Scans all
.tsand.tsxfiles undersrc/clientfor:<FormattedMessage id="..."andid={'...'}formatMessage({ id: '...' })labelId: '...'
On success, prints a confirmation. On failure, prints which keys are missing or extra and exits with code 1.
When to run: Only if using option 3 (full translation). Before committing when you add or change UI strings.