feat(i18n): add CI check script for missing i18n keys (#4826)#4981
Merged
mrveiss merged 1 commit intoDev_new_guifrom Apr 17, 2026
Merged
feat(i18n): add CI check script for missing i18n keys (#4826)#4981mrveiss merged 1 commit intoDev_new_guifrom
mrveiss merged 1 commit intoDev_new_guifrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4826
Summary
autobot-frontend/scripts/check-i18n-keys.mjs— pure Node ESM, no new dependencies.vue/.tssource files for$t()/t()callsen.json(5769 keys) into a Set and reports mismatches"check:i18n": "node scripts/check-i18n-keys.mjs"topackage.jsonci.yml(frontend-tests job) andfrontend-test.yml(unit-tests job)Test Status
PASS — script runs cleanly, exits 1 with 81 real missing keys as expected