goodtranslate

0.5.3 • Public • Published

简体转繁体,繁体转简体

const Translate = require('goodtranslate')

const translator = new Translate()

// 简体转繁体
var tr = translator.ToTraditionalChinese('你好,序言,黄帝内经,龙王庙', 2)
console.log(tr)
//你好,序言,黃帝內經,龍王廟

tr = translator.ToSimplifiedChinese('你好,序言,黃帝內經,龍王廟', 2)
console.log(tr)
//你好,序言,黄帝内经,龙王庙

Package Sidebar

Install

npm i goodtranslate

Weekly Downloads

1

Version

0.5.3

License

Apache License 2.0

Unpacked Size

332 kB

Total Files

4

Last publish

Collaborators

  • youjia