govuk-one-login / ipv-cri-common-express

Common frontend components for Credential Issuers
MIT License
2 stars 0 forks source link

Extract check-translations script into pre-commit package #407

Open merlinc opened 2 weeks ago

merlinc commented 2 weeks ago

The checkTranslations script provides a valuable check to ensure that language files are kept in equivalent parity. Welsh has a different plural structure than English which means plural keys cannot be directly mapped 1:1.

This script would be more useful as a pre-commit hook rather than requiring an extra GHA to be configured in each consuming repository.

This will help diminish the footprint of the ipv-cri-common-express package.

Once this has been extracted into a package for use with pre-commit, this then enables investigation to reuse elsewhere on the programme.