chinese-simple-tradition-translator
v0.1.0
Published
Translate chinese between simple and traditional chinese.
Downloads
1
Maintainers
Readme
Translate chinese between simple and traditional chinese.
Install
$ npm install --save chinese-simple-tradition-translator
Usage
var chineseSimpleTraditionTranslator = require('chinese-simple-tradition-translator');
自动检测字体并翻译
var tranditional = chineseSimpleTraditionTranslator.translate('三國演義');
var simple= chineseSimpleTraditionTranslator.translate('三国演义');
读取文件并直接把翻译文字保存到目标文件,并设置使用s2t(简体到繁体)
chineseSimpleTraditionTranslator.translateFile("input.file", "output.file", "s2t", function(err) {
});
License
MIT © Pai Peng