diff --git a/packages/shared/lib/i18n.ts b/packages/shared/lib/i18n.ts index 33697f39ff3..fa5048a999d 100644 --- a/packages/shared/lib/i18n.ts +++ b/packages/shared/lib/i18n.ts @@ -83,6 +83,16 @@ const setupI18n = (options = { withLocale: null }) => { language: _locale }) isDownloading.set(false) + + // If we have not loaded "en" make sure we have it as a backup language + // in case the chosen language does not have all the translations + if (_locale !== "en" && !hasLoadedLocale("en")) { + const messagesFileUrl = MESSAGE_FILE_URL_TEMPLATE.replace('{locale}', 'en') + loadJson(messagesFileUrl) + .then((messages) => { + addMessages("en", messages) + }) + } }) } }