i18n-c2x-cli

0.0.4 • Public • Published

i18n-cli

export Chinese & translate Chinese

install

pnpm add i18n-c2x-cli -g

usage:

ctx export
ctx translate // zh-cn to any

config

//in package.json
"ctx": {
  // 这三个参数可查baidu翻译的接口文档,如果不需要翻译功能可以不填写
  "appid": "20221014001391302",
  "apikey": "efT1XJ_t9_9_V4MHPEDM",
  "to": "en",  //language

  "include": "",//包含哪些后缀的文件,默认 .js .vue .ts
  "path": "",   //文件路径,以该路径为根路径,读取全部文件,默认 'src'
  "ignore":[] //type string[] => fast-glob.config.ignore ; 忽略哪些文件。如 'src/main.js'
  }

Readme

Keywords

none

Package Sidebar

Install

npm i i18n-c2x-cli

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

10.8 kB

Total Files

10

Last publish

Collaborators

  • seemrcola