Add locale key consistency tests for _locales messages.json files#290
Merged
Add locale key consistency tests for _locales messages.json files#290
Conversation
…iles Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test cases to check missing language definition files
Add locale key consistency tests for _locales messages.json files
Feb 24, 2026
ujiro99
approved these changes
Feb 25, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #290 +/- ##
=======================================
Coverage 19.10% 19.10%
=======================================
Files 308 308
Lines 28730 28730
Branches 1317 1317
=======================================
Hits 5488 5488
Misses 23242 23242 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ujiro99
approved these changes
Feb 25, 2026
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.
_localesディレクトリ配下の各言語定義ファイルに対して、キーの欠落と並び順の不整合を検出するテストが存在しなかった。Changes
New test:
src/test/locales.test.ts_localesを動的スキャンし、新しい言語追加にも自動対応:enと同一のキーセットを持つこと(欠落・余剰を両方検出)enと一致することLocale file fixes
LC-03 で13言語すべて(de, es, fr, hi, id, it, ja, ko, ms, pt_BR, pt_PT, ru, zh_CN)のキー順序が
enと乖離していることが判明したため、enの順序に揃えて修正した。Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.