check-i18n
Installation
SKILL.md
Check I18n
Overview
Validate that i18n keys defined in Go source code match the keys in TOML translation files. Ensures all keys in internal/i18n/keys.go have corresponding entries in en.toml and zh-CN.toml, and vice versa.
When to Use
- After adding new i18n keys to
internal/i18n/keys.go - After adding translations to
internal/i18n/locales/en.tomlorzh-CN.toml - Before committing i18n-related changes
- To diagnose missing translation issues
Workflow
Step 1: Run the Check Script
Execute the validation script from the project root: