[locales] Change default locale to en-US

Fixes settings page on jp-JP locale
This commit is contained in:
Jeder 2023-11-18 22:24:54 +01:00
parent b73a07011a
commit 054a40d5f4
No known key found for this signature in database
GPG key ID: 5896D495990EB20C

View file

@ -71,14 +71,10 @@ 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;
default: default:
return merge( return merge(
locales["ja-JP"],
locales["en-US"], locales["en-US"],
locales[`${lang}-${primaries[lang]}`] || {}, locales[`${lang}-${primaries[lang]}`] || {},
v, v,