CI: translation coverage job

A separate 'translations' job runs the i18n checker on every push and
PR and writes a coverage table per language to the run summary, with
the missing, broken and unused keys listed. The checker now also fails
when a language file is not offered in SOT_LANGS or cached in sw.js.
This commit is contained in:
Frederic Jung 2026-10-26 06:04:28 +01:00
parent 0ecce20dec
commit 4e95b9b397
No known key found for this signature in database
3 changed files with 50 additions and 7 deletions

View file

@ -21,3 +21,15 @@ jobs:
- run: npm test
- name: Build (not deployed — only releases deploy)
run: npm run build
translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: npm ci
- name: Translation coverage
run: node scripts/i18n-check.js --summary "$GITHUB_STEP_SUMMARY"