mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
Fix glitch-soc flavor always loading english locales for upstream (#3076)
This commit is contained in:
@@ -25,7 +25,7 @@ export async function loadLocale() {
|
|||||||
if (isLocaleLoaded()) return;
|
if (isLocaleLoaded()) return;
|
||||||
|
|
||||||
// If there is no locale file, then fallback to english
|
// 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/${locale}.json`]
|
||||||
: upstreamLocaleFiles['/mastodon/locales/en.json'];
|
: upstreamLocaleFiles['/mastodon/locales/en.json'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user