Fix glitch-soc flavor always loading english locales for upstream (#3076)

This commit is contained in:
Claire 2025-05-26 18:45:55 +02:00 committed by GitHub
parent a67527c589
commit 56b3726899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'];