360 Secure SkillHub
360 安全技能中心

vscode-ext-localization

该 Skill 说明 VS Code 扩展本地化的三种方式:package.json 中的设置、命令、菜单、视图等使用 package.nls.LANGID.json;走查内容使用对应的 Markdown 文件;源码中的消息使用 bundle.l10n.LANGID.json,并强调新增或更新可本地化资源时需同步更新所有现有语言。

分类:开发
github
热度 45.39
最近更新 2026-10-18 22:13:14

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add github/awesome-copilot/vscode-ext-localization
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
vscode-ext-localization
description
Guidelines for proper localization of VS Code extensions, following VS Code extension development guidelines, libraries and good practices

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