mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 优化语言显示
This commit is contained in:
1 parent
4da505a955
commit
8e0c140ef4
3 files changed
+3
-2
No files matched your search
@@ -22,7 +22,7 @@ class WikiHelpHandler extends Handler {
|
||||
const languages = {};
|
||||
// eslint-disable-next-line guard-for-in
|
||||
for (const key in LANGS) {
|
||||
languages[LANGS[key].display] = LANGS[key].compile || LANGS[key].execute;
|
||||
languages[`${LANGS[key].display}(${key})`] = LANGS[key].compile || LANGS[key].execute;
|
||||
}
|
||||
this.response.body = { languages };
|
||||
this.response.template = 'wiki_help.html';
|
||||
|
||||
Reference in new issue
Block a user