技能 编程开发 VS Code扩展本地化指南

VS Code扩展本地化指南

v20260410
vscode-ext-localization
本指南提供了完整的VS Code扩展本地化流程和最佳实践指导。它详细介绍了如何本地化扩展的所有组成部分,包括配置项(如设置、命令)、用户界面字符串资源以及引导式向导内容,确保您的扩展能够适配多语言环境。
获取技能
394 次下载
概览

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
信息
Category 编程开发
Name vscode-ext-localization
版本 v20260410
大小 1.44KB
更新时间 2026-04-14
语言