vscode-ext-localization
它能做什么
这个工具可以帮你把 VS Code 扩展翻译成其他语言。它会确保所有面向用户的文字(例如设置项、命令和提示信息)都被正确地本地化。
适用场景
- ✓创建新扩展,并希望它能支持多种语言时。
- ✓更新已有扩展,需要增加对新语言的支持时。
- ✓修复某种语言下显示错误的文字时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/vscode-ext-localization/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我该如何把扩展中的提示信息翻译成巴西葡萄牙语?”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会把每种语言的翻译整理到单独的文件中。根据你要翻译的内容(设置项、Markdown 文件中的文字或代码),它会建议使用特定类型的文件来存放这些翻译。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
VS Code extension localization
This skill helps you localize every aspect of VS Code extensions
When to use this skill
Use this skill when you need to:
- Localize new or existing contributed configurations (settings), commands, menus, views or walkthroughs
- Localize new or existing messages or other string resources contained in extension source code that are displayed to the end user
Instructions
VS Code localization is composed by three different approaches, depending on the resource that is being localized. When a new localizable resource is created or updated, the corresponding localization for all currently available languages must be created/updated.
- Configurations like Settings, Commands, Menus, Views, ViewsWelcome, Walkthrough Titles and Descriptions, defined in
package.json-> An exclusivepackage.nls.LANGID.jsonfile, likepackage.nls.pt-br.jsonof Brazilian Portuguese (pt-br) localization - Walkthrough content (defined in its own
Markdownfiles) -> An exclusiveMarkdownfile likewalkthrough/someStep.pt-br.mdfor Brazilian Portuguese localization - Messages and string located in extension source code (JavaScript or TypeScript files)
-> An exclusive
bundle.l10n.pt-br.jsonfor Brazilian Portuguese localization
常见问题
什么是“贡献配置”(contributed configurations)?
它们是你的扩展添加到 VS Code 中的设置项,也就是用户可以在编辑器设置中调整的选项。
什么是“字符串资源”(string resources)?
它们是扩展向用户展示的所有文字,例如错误提示、按钮文字和描述说明。
需要一次性把所有内容都翻译完吗?
只要你新增或修改了需要翻译的内容,就记得为你支持的所有语言创建或更新对应的翻译。
详情
作者的原始描述
Guidelines for proper localization of VS Code extensions, following VS Code extension development guidelines, libraries and good practices
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7473
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。