mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix lang select
This commit is contained in:
1 parent
e9e2695fdd
commit
2620286aef
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.35.4",
|
||||
"version": "4.35.5",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -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) continue;
|
||||
else if (LANGS[key].hidden && !langList?.includes(key)) continue;
|
||||
Langs[key] = LANGS[key];
|
||||
}
|
||||
return Langs;
|
||||
|
||||
Reference in new issue
Block a user