一键导入
i18n-check
Scan files for hardcoded English strings and report translation gaps
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scan files for hardcoded English strings and report translation gaps
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Update block documentation after completing work on a feature block. Run this after finishing work to close the feedback loop.
Server action patterns
Tenant isolation
Query optimization and N+1 detection
Component optimization
OWASP compliance
| name | i18n-check |
| description | Scan files for hardcoded English strings and report translation gaps |
Audit the specified files (or src/components/school-dashboard/ by default) for hardcoded English strings that should use dictionary keys or i18n helpers.
$ARGUMENTS
Run these grep patterns across target files (skip dictionaries/, __tests__/, .test., .spec.):
<FormLabel>[A-Za-z][^{<]+</FormLabel> -- hardcoded form labelstoast\.(success|error|warning|info)\(["'][A-Za-z] -- hardcoded toasts<Button[^>]*>[A-Za-z][^{<]+</Button> -- hardcoded buttonserror:\s*["'][A-Z] -- hardcoded error returnslabel:\s*["'][A-Z] -- hardcoded select labels\.(min|max|email|url|regex|refine)\([^)]*["'][A-Z] -- hardcoded Zod messages(title|name|description|label|body)(Ar|En|Arabic|English)\b -- bilingual field namesplaceholder=["'][A-Z][^"'{]+["'] -- hardcoded placeholdersReport results grouped by anti-pattern type with file:line references
Output summary with counts per type and total
See .claude/rules/translation.md for correct patterns. Key helpers:
ValidationHelper from @/components/internationalization/helpersToastHelper from @/components/internationalization/helpersErrorHelper from @/components/internationalization/helperscreateI18nHelpers(dictionary.messages) returns all three