You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a small script that validates all locale JSON files contain the same set of keys as locales/en.json. This helps keep translations in sync and is a useful CI check.
Tasks
Add a script scripts/validate-locales.js that loads locales/en.json and validates other locales/*.json files contain the same keys (report missing/extra keys).
Add an npm script validate-locales to package.json to run the script.
Optionally add the script to CI to fail on mismatched keys.
Tip
🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨
Create a small script that validates all locale JSON files contain the same set of keys as
locales/en.json. This helps keep translations in sync and is a useful CI check.Tasks
scripts/validate-locales.jsthat loadslocales/en.jsonand validates otherlocales/*.jsonfiles contain the same keys (report missing/extra keys).validate-localestopackage.jsonto run the script.Tip
🚀 Want to contribute?
Comment
assign meto be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨