mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: enhance language selection
This commit is contained in:
1 parent
377ef55d49
commit
80ac44d98e
17 files changed
+201
-70
No files matched your search
@@ -24,6 +24,7 @@ export function parseLang(config: string): Record<string, LangConfig> {
|
||||
const baseCfg = file[base];
|
||||
if (baseCfg) {
|
||||
for (const bkey in baseCfg) {
|
||||
if (bkey === 'sub') continue;
|
||||
if (!(bkey in entry)) entry[bkey] = baseCfg[bkey];
|
||||
}
|
||||
if (baseCfg.sub) baseCfg.sub.push(entry);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/utils",
|
||||
"version": "1.0.14",
|
||||
"version": "1.0.15",
|
||||
"description": "hydrooj utils",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
Reference in new issue
Block a user