fix: 🐛 en-US default merge language
Preoperly addresses the issue from !10527
This commit is contained in:
parent
487fd3faaf
commit
784d92bf0f
@ -71,15 +71,15 @@ module.exports = Object.entries(locales).reduce(
|
|||||||
(a[k] = (() => {
|
(a[k] = (() => {
|
||||||
const [lang] = k.split("-");
|
const [lang] = k.split("-");
|
||||||
switch (k) {
|
switch (k) {
|
||||||
case "ja-JP":
|
|
||||||
return v;
|
|
||||||
case "ja-KS":
|
|
||||||
case "en-US":
|
case "en-US":
|
||||||
return merge(locales["ja-JP"], v);
|
return v;
|
||||||
|
case "ja-JP":
|
||||||
|
case "ja-KS":
|
||||||
|
return merge(locales["en-US"], v);
|
||||||
default:
|
default:
|
||||||
return merge(
|
return merge(
|
||||||
locales["ja-JP"],
|
|
||||||
locales["en-US"],
|
locales["en-US"],
|
||||||
|
locales["ja-JP"],
|
||||||
locales[`${lang}-${primaries[lang]}`] || {},
|
locales[`${lang}-${primaries[lang]}`] || {},
|
||||||
v,
|
v,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user