Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>extract-translation-keysNew to Visual Studio Code? Get it now.
extract-translation-keys

extract-translation-keys

Taotaopersonal

|
1 install
| (0) | Free
extract-translation-keys
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

提取翻译键插件 (extract-translation-keys)

一个帮助从代码中提取翻译键的 VS Code 插件,支持自动生成翻译文件并保持国际化键值同步。

安装

  1. 打开 VS Code。
  2. 按下 Ctrl+Shift+X (Windows/Linux) 或 Cmd+Shift+X (macOS) 打开扩展面板
  3. 搜索 "extract-translation-keys" 4.点击安装按钮,重启 VS Code 后生效

使用

提取翻译键

  1. 打开需要提取翻译键的代码文件。
  2. 右键文件菜单中选择 "提取翻译字符串并写入 en.js 文件中"。
  3. 插件会自动扫描文件中的翻译字符串,并将其写入 en.js 文件中。

配置翻译文件路径

  1. 打开 VS Code 设置。
  2. 搜索 "Translation Extractor Path"。
  3. 设置翻译文件的路径,例如 "${workspaceFolder}/language/lib/en.js"。
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft