mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: fix lang select
This commit is contained in:
1 parent
0abcc25f55
commit
e1228345b0
1 file changed
+1
-1
@@ -63,7 +63,7 @@ global.Hydro.locales = new Proxy(translations, {
|
|||||||
if (!self[lang]) return {};
|
if (!self[lang]) return {};
|
||||||
return new Proxy(self[lang], {
|
return new Proxy(self[lang], {
|
||||||
get(s, key: string) {
|
get(s, key: string) {
|
||||||
return app.i18n.get(lang, key);
|
return app.i18n.get(key, lang);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user