Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>byted-cg-i18n-devToolsNew to Visual Studio Code? Get it now.
byted-cg-i18n-devTools

byted-cg-i18n-devTools

sulihuang

|
108 installs
| (0) | Free
make i18n dict easier
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

简介

这是一个基于 @byted-cg/i18n_scanner 命令行工具的 VSC Extension 版本, 通过 「UI / 快捷键」的操作来生成文案字典,搜索指定文案。

下载与安装

离线 vsix 下载

vsix 文件安装

功能

名称 功能 快捷键
字典生成 扫描当前项目中的国际化文案 cmd + 3
文案搜索 搜索某个文案的code/text cmd + 4

个性化配置(可选)

工具默认搜索的范围为「项目根目录下的 'src'」, 默认字典生成路径为「项目根目录下的 'scanner/lang.json'」

这俩路径可以通过以下方式来进行个性化配置:

Step 1

在项目根目录下新建名为 .bytedi18nvserc 的文件

Step 2

修改 .bytedi18nvserc 文件,模版如下:

module.exports = {
  // 源文件范围
  src: 'src',

  // 字典文件生成路径
  output: 'scanner/lang.json'
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft