Update translate.js
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var systemLang = 'en';
|
var systemLang = 'cn';
|
||||||
var systemDictionary = {};
|
var systemDictionary = {};
|
||||||
|
|
||||||
function translateWord(text, lang, dictionary) {
|
function translateWord(text, lang, dictionary) {
|
||||||
@@ -21,7 +21,7 @@ function translateWord(text, lang, dictionary) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (typeof text === 'string' && !text.match(/_tooltip$/)) {
|
} else if (typeof text === 'string' && !text.match(/_tooltip$/)) {
|
||||||
console.log('"' + text + '": {"en": "' + text + '", "de": "' + text + '", "ru": "' + text + '", "pt": "' + text + '", "nl": "' + text + '", "fr": "' + text + '"},');
|
console.log('"' + text + '": {"en": "' + text + '", "cn": "' + text + '"},');
|
||||||
} else if (typeof text !== 'string') {
|
} else if (typeof text !== 'string') {
|
||||||
console.warn('Trying to translate non-text:' + text);
|
console.warn('Trying to translate non-text:' + text);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user