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