Skip to content

SongFuZhen/html-i18n-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-i18n-cli

HTML 国际化工具

安装

1. 安装 Node.js

2. npm install 

3. 安装 yarn 代替 npm (可选)
npm i -g yarn 

使用

  1. 生成 JSON 文件
npm run parse test/test.html

// 或 yarn parse test/test.html
  1. 翻译 JSON 文件

输入两次 Ctrl + C 终止,机翻后可手动校对

npm run trans test/test.json -t en

// 或 yarn trans test/test.json -t en
  1. 还原 HTML 文件
node ./bin/html.js render test.html test.json

附加功能

  • JSON 转 EXCEL
node ./bin/html.js convert test.json
  • EXCEL 转 JSON
node ./bin/html.js convert test.xlsx

About

HTML 国际化/翻译 工具

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 76.1%
  • JavaScript 23.9%