f2e-ai-i18n-translate
Use when a confirmed requirement-id has changed files that contain Chinese text and the project requires i18n replacement plus locale updates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a confirmed requirement-id has changed files that contain Chinese text and the project requires i18n replacement plus locale updates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
按 GitLab TBID 强制校验规范提交 Git 变更并在对话中总结。提交信息必须以 [TBID:项目ID-任务编号] 开头。用户说「提交」「提交并总结」「帮我 commit」时使用;不写 .cursor/commit-summary 文件。
按用户指定目录扫描并翻译页面标题(navigationBarTitleText、SpPage title、setNavigationBarTitle)。用户说「翻译页面 title」「目录下 title 没翻译」「i18n page title」时触发。
按计划文件顺序逐文件完成 i18n(哈希键 + @/i18n 的 $t/ti,禁止页面使用 globalThis.$t),维护 subpages/i18n/locales 三语,并在对应 plan 中更新进度与统计。用户说「按计划做 i18n」「继续翻译 plans」时触发。
Summarize current code changes and optionally commit. Use when the user asks to summarize what changed, record changes, commit with a message, or "总结这次改了什么并提交"/"帮我 commit".
Use when analyzing a frontend codebase, onboarding into an existing project, or documenting stack, structure, configs, and coding conventions into .f2e-ai/handbook/.
Use when a requirement-id is ready for delivery and the next step is to summarize Git changes, write change-summary.md, commit, push, and prepare a PR.
| name | f2e-ai-i18n-translate |
| description | Use when a confirmed requirement-id has changed files that contain Chinese text and the project requires i18n replacement plus locale updates. |
本技能主要实现文件的多语言翻译:扫描给到的文件中的中文,生成对应的多语言 key,替换文件中需要翻译的地方,并将多语言写入到语言包中。
requirement-idRead scripts/extract_i18n.py before running the localization workflow.
Read scripts/generate_i18n_key.py before generating new locale keys.
Read references/file-type-rules.md before editing source files.
.f2e-ai/requirements/<id>/plan.md.f2e-ai/requirements/<id>/i18n-notes.mdplan.md 提取本次修改或新增的文件。scripts/ 下的 Python 脚本扫描这些文件中的中文。scripts/generate_i18n_key.py 生成 key。
md5(当前文件相对路径) 前 8 位 + '.' + md5(翻译内容) 前 6 位8位hex.6位hext(...) 或 $t(...).f2e-ai/requirements/<id>/i18n-notes.md。