ui: enhance language selection

This commit is contained in:
undefined committed 2021-05-07 22:22:24 +08:00
1 parent 377ef55d49
commit 80ac44d98e
17 files changed
+201 -70

No files matched your search

-6
View File
@@ -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,
};