Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>yp-i18nNew to Visual Studio Code? Get it now.
yp-i18n

yp-i18n

yp

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

yp-i18n

yp 国际化工具

Features

  • 自动生成国际化资源
  • 自动生成国际化代码

index tsx - web-react - Visual Studio Code 2023-08-08 15-08-08

Todo

  • [ ] 支持模板语法

Extension Settings

配置国际化资源路径(绝对路径)

{
 "yp-i18n.url": {
    "enPath": "D:\\projects\\web-react\\src\\locals\\en.json",
    "zhPath": "D:\\projects\\web-react\\src\\locals\\zh.json"
  },
  "yp-i18n.tranSource":"baidu"
}

仅用于当前项目配置(最高优先级)

.yp-i18n.json

{
 "yp-i18n.url": {
    "enPath": "./source/locals/en.json",
    "zhPath": "./source/locals/zh.json"
  },
  "yp-i18n.tranSource":"baidu"
}

Usage

  • 选中中文后右键: "YP I18n"
  • 选中中文后也可以使用快捷键: cmd+t (Mac), ctrl+t (Win, Linux)

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft