1
0
Fork 1
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:
ThatOneCalculator 2023-07-25 21:56:59 -07:00
parent 487fd3faaf
commit 784d92bf0f
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -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,
);