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

This commit is contained in:
Claire authored and GitHub committed 2025-05-26 18:45:55 +02:00
1 parent a67527c589
commit 56b3726899
1 file changed
+1 -1
@@ -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'];