ui: fix typo

This commit is contained in:
undefined authored and GitHub committed 2022-05-06 10:23:17 +08:00
1 parent 2620286aef
commit 91f3b9070a
1 file changed
+1 -1
+1 -1
View File
@@ -5,7 +5,7 @@ export default function getAvailableLangs(langsList?: string[]) {
for (const key in LANGS) {
if (prefixes.has(key)) continue;
if (langsList && langsList.length && langsList.join('') && !langsList.includes(key)) continue;
else if (LANGS[key].hidden && !langList?.includes(key)) continue;
else if (LANGS[key].hidden && !langsList?.includes(key)) continue;
Langs[key] = LANGS[key];
}
return Langs;