mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-30 21:30:17 -06:00
fix locales
This commit is contained in:
parent
95da7086b8
commit
f17e5e91be
1 changed files with 5 additions and 6 deletions
|
@ -86,12 +86,11 @@ export function build() {
|
|||
case 'zh-TW':
|
||||
return merge(locales['en-US'], v);
|
||||
default:
|
||||
return merge(
|
||||
locales['en-US'],
|
||||
locales['ja-JP'],
|
||||
locales[`${lang}-${primaries[lang]}`] ?? {},
|
||||
v
|
||||
);
|
||||
const base = Object.keys(v).some(key =>
|
||||
!locales['en-US'][key] && locales['ja-JP'][key]
|
||||
) ? merge(locales['en-US'], locales['ja-JP']) : locales['en-US'];
|
||||
|
||||
return merge(base, v);
|
||||
}
|
||||
})(), a), {});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue