Skip to content

feat: Add locale keys validation script #166

Description

@O2sa

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! ✨

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions