mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: fix availableLangs
This commit is contained in:
1 parent
2a66302c9e
commit
0c277f2224
5 files changed
+19
-19
No files matched your search
@@ -52,7 +52,7 @@ function initCodeLangHelper() {
|
||||
}
|
||||
const main = {};
|
||||
for (const key in window.LANGS) {
|
||||
if (!key.includes('.')) main[key] = window.LANGS[key].display;
|
||||
if (!key.includes('.') && !window.LANGS[key].hidden) main[key] = window.LANGS[key].display;
|
||||
}
|
||||
setOptions($('#codelang-main-select'), main);
|
||||
const current = $('[name="codeLang"]').val();
|
||||
|
||||
Reference in new issue
Block a user