Update translate.js

This commit is contained in:
钟进 2018-09-16 11:06:46 +08:00
parent e6d2b04442
commit d783287121

View File

@ -6,6 +6,9 @@ function translateWord(text, lang, dictionary) {
lang = lang || systemLang;
dictionary = dictionary || systemDictionary;
if (lang == 'zh-CN') lang='cn';
if (dictionary[text]) {
var newText = dictionary[text][lang];
if (newText) {