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
@@ -71,13 +71,8 @@ export async function runConfig() {
|
||||
await bus.emit('database/config');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line import/no-mutable-exports
|
||||
export let lang = {};
|
||||
|
||||
bus.on('system/setting', (args) => {
|
||||
for (const key in args) set(key, args[key], false);
|
||||
if (!args['hydrooj.lang']) return;
|
||||
lang = parseLang(args['hydrooj.lang']);
|
||||
});
|
||||
|
||||
global.Hydro.model.system = {
|
||||
@@ -86,5 +81,4 @@ global.Hydro.model.system = {
|
||||
getMany,
|
||||
inc,
|
||||
set,
|
||||
lang,
|
||||
};
|
||||
Reference in new issue
Block a user