Fix glitch-soc flavor always loading english locales for upstream (#3076)
This commit is contained in:
parent
a67527c589
commit
56b3726899
@ -25,7 +25,7 @@ export async function loadLocale() {
|
||||
if (isLocaleLoaded()) return;
|
||||
|
||||
// If there is no locale file, then fallback to english
|
||||
const upstreamLocaleFile = Object.hasOwn(upstreamLocaleFiles, `@/mastodon/locales/${locale}.json`)
|
||||
const upstreamLocaleFile = Object.hasOwn(upstreamLocaleFiles, `/mastodon/locales/${locale}.json`)
|
||||
? upstreamLocaleFiles[`/mastodon/locales/${locale}.json`]
|
||||
: upstreamLocaleFiles['/mastodon/locales/en.json'];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user