mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: bug fix
This commit is contained in:
1 parent
90528f15d1
commit
52cdd166aa
2 files changed
+2
-1
No files matched your search
@@ -65,7 +65,7 @@ global.Hydro.locales = new Proxy(translations, {
|
||||
get(s, key) {
|
||||
if (typeof key === 'string') return app.i18n.get(key, lang);
|
||||
const result = {};
|
||||
for (let i = s.length - 1; i; i--) Object.assign(result, s[i]);
|
||||
for (let i = s.length - 1; i >= 0; i--) Object.assign(result, s[i]);
|
||||
return result;
|
||||
},
|
||||
has(s, key: string) {
|
||||
|
||||
Reference in new issue
Block a user