judge: skip subtask if already unaccepted (#34)

This commit is contained in:
undefined committed 2020-11-29 18:21:16 +08:00
1 parent 1817341eee
commit 9f0668d938
6 files changed
+26 -7

No files matched your search

+3
View File
@@ -48,6 +48,9 @@ String.prototype.translate = function translate(...languages: string[]) {
if (locales[language]) {
if (locales[language][this] !== undefined) return locales[language][this];
}
if (locales[language.split('_')[0]]) {
if (locales[language.split('_')[0]][this] !== undefined) return locales[language.split('_')[0]][this];
}
}
return this;
};