跳到正文
Skillpedia
技术文档40k · #7473

vscode-ext-localization

它能做什么

这个工具可以帮你把 VS Code 扩展翻译成其他语言。它会确保所有面向用户的文字(例如设置项、命令和提示信息)都被正确地本地化。

适用场景

  • ✓创建新扩展,并希望它能支持多种语言时。
  • ✓更新已有扩展,需要增加对新语言的支持时。
  • ✓修复某种语言下显示错误的文字时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/vscode-ext-localization/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/vscode-ext-localization/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

  1. Configurations like Settings, Commands, Menus, Views, ViewsWelcome, Walkthrough Titles and Descriptions, defined in package.json -> An exclusive package.nls.LANGID.json file, like package.nls.pt-br.json of Brazilian Portuguese (pt-br) localization
  2. Walkthrough content (defined in its own Markdown files) -> An exclusive Markdown file like walkthrough/someStep.pt-br.md for Brazilian Portuguese localization
  3. Messages and string located in extension source code (JavaScript or TypeScript files) -> An exclusive bundle.l10n.pt-br.json for 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能