Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 965 Bytes

README.md

File metadata and controls

50 lines (34 loc) · 965 Bytes

ifun-oa-i18n

ifun oa 国际化工具

Features

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

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

Todo

  • 支持模板语法

Extension Settings

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

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

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

.ifun-oa-i18n.json

{
 "ifun-oa-i18n.url": {
    "enPath": "./source/locals/en.json",
    "zhPath": "./source/locals/zh.json"
  },
  "ifun-oa-i18n.tranSource":"google"
}

Usage

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

Enjoy!