core: fix lang select

This commit is contained in:
undefined committed 2022-11-04 21:41:40 +08:00
1 parent 0abcc25f55
commit e1228345b0
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ global.Hydro.locales = new Proxy(translations, {
if (!self[lang]) return {};
return new Proxy(self[lang], {
get(s, key: string) {
return app.i18n.get(lang, key);
return app.i18n.get(key, lang);
},
});
},