Skip to content

feat(i18n): add CI check script for missing i18n keys (#4826)#4981

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4826
Apr 17, 2026
Merged

feat(i18n): add CI check script for missing i18n keys (#4826)#4981
mrveiss merged 1 commit intoDev_new_guifrom
issue-4826

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 17, 2026

Closes #4826

Summary

  • New autobot-frontend/scripts/check-i18n-keys.mjs — pure Node ESM, no new dependencies
    • Scans all 545 .vue/.ts source files for $t()/t() calls
    • Flattens en.json (5769 keys) into a Set and reports mismatches
    • Exits 1 if any missing keys found
  • Added "check:i18n": "node scripts/check-i18n-keys.mjs" to package.json
  • Added "Check i18n keys" step to ci.yml (frontend-tests job) and frontend-test.yml (unit-tests job)
  • Found 81 genuinely missing keys in existing code — filed as separate discovery issue

Test Status

PASS — script runs cleanly, exits 1 with 81 real missing keys as expected

Adds autobot-frontend/scripts/check-i18n-keys.mjs that statically
extracts all $t() and t() calls from .vue/.ts source files, resolves
them against src/i18n/locales/en.json, and exits 1 if any keys are
absent. Wired as `npm run check:i18n` in package.json and added as a
CI step in both .github/workflows/ci.yml and frontend-test.yml so
missing translations are caught on every push/PR.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrveiss mrveiss merged commit 09bd23c into Dev_new_gui Apr 17, 2026
1 of 3 checks passed
@mrveiss mrveiss deleted the issue-4826 branch April 17, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant