core: fix training.getListStatus

This commit is contained in:
undefined committed 2020-11-30 22:39:50 +08:00
1 parent 0c51e7d5f6
commit 151cc79f36
3 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -43,8 +43,9 @@ String.prototype.rawformat = function rawFormat(object) {
};
String.prototype.translate = function translate(...languages: string[]) {
if (languages.length === 0) languages = ['zh_CN'];
if (!languages.length) languages = ['zh_CN'];
for (const language of languages) {
if (!language) continue;
if (locales[language]) {
if (locales[language][this] !== undefined) return locales[language][this];
}