Update translate.js
This commit is contained in:
parent
e6d2b04442
commit
d783287121
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user