Skip to content

goldEli/oa-i18n-tool

Repository files navigation

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!

About

oa i18n tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published