mirror of
https://example.com
synced 2024-11-23 04:36:39 +09:00
fix: 🐛 en-US default merge language
Preoperly addresses the issue from !10527
This commit is contained in:
parent
487fd3faaf
commit
784d92bf0f
1 changed files with 5 additions and 5 deletions
|
@ -71,15 +71,15 @@ module.exports = Object.entries(locales).reduce(
|
|||
(a[k] = (() => {
|
||||
const [lang] = k.split("-");
|
||||
switch (k) {
|
||||
case "ja-JP":
|
||||
return v;
|
||||
case "ja-KS":
|
||||
case "en-US":
|
||||
return merge(locales["ja-JP"], v);
|
||||
return v;
|
||||
case "ja-JP":
|
||||
case "ja-KS":
|
||||
return merge(locales["en-US"], v);
|
||||
default:
|
||||
return merge(
|
||||
locales["ja-JP"],
|
||||
locales["en-US"],
|
||||
locales["ja-JP"],
|
||||
locales[`${lang}-${primaries[lang]}`] || {},
|
||||
v,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue