- name
SKILL.md
技能檔案保留在發布者的儲存庫中。
在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add laolaoshiren/claude-code-skills-zh --skill i18n-helper -a cursor -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add laolaoshiren/claude-code-skills-zh --skill i18n-helper -a claude-code -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add laolaoshiren/claude-code-skills-zh --skill i18n-helper -a codex -y在終端機中貼上複製的指令。它會將這個 SKILL.md 安裝到對應的代理中。
npx skills add laolaoshiren/claude-code-skills-zh --skill i18n-helper -a grok -y在 Grok Bot 聊天中傳送複製的訊息。Bot 會從 GitHub 取得這個 SKILL.md,並加入你所有 Bot 共用的技能中。
Install this skill: https://github.com/laolaoshiren/claude-code-skills-zh/tree/HEAD/skills/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 等格式国际化/本地化助手 — 扫描代码中的硬编码文本、生成 i18n 配置、批量翻译
---name: i18n-helperdescription: 国际化/本地化助手 — 扫描代码中的硬编码文本、生成 i18n 配置、批量翻译---# skills/i18n-helper/SKILL.md常見問題
從發布者下載 skills/i18n-helper/SKILL.md,或複製路徑後開啟儲存庫。PlugMCP 只收錄這項技能,不代管檔案。
發布者將它存放在 https://github.com/laolaoshiren/claude-code-skills-zh。
Claude、Cursor、Codex 和 Grok Build 可以讀取你從發布者儲存庫加入的 SKILL.md。在聊天中傳送技能的 GitHub 資料夾連結,Grok Bot 就會安裝它。