laolaoshiren/i18n-helper
国际化/本地化助手 — 扫描代码中的硬编码文本、生成 i18n 配置、批量翻译
npx skills add https://github.com/laolaoshiren/claude-code-skills-zh --skill i18n-helper
当用户要求以下操作时激活此技能:
.js/.jsx/.ts/.tsx/.vue/.py/.java/.go 等文件中搜索硬编码字符串根据项目框架生成对应格式:
{ "key": "value" }key: valuekey=value // 替换前
alert('保存成功');
// 替换后
alert(t('alert.saveSuccess'));
## 📊 i18n 扫描报告
### 硬编码文本
| 文件 | 行号 | 内容 | 建议 key |
|------|------|------|----------|
| src/App.tsx | 42 | '欢迎使用' | page.welcome |
### 语言文件
已生成 `locales/zh-CN.json` 和 `locales/en-US.json`
### 翻译完整性
- zh-CN: 45/45 (100%) ✅
- en-US: 42/45 (93.3%) ⚠️ 缺少 3 个 key
{name} {{count}} %s 等格式Take laolaoshiren/i18n-helper from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.