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:
parent
0ecce20dec
commit
4e95b9b397
3 changed files with 50 additions and 7 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue