From 19a0b00853fad4dd2d6c0ee31ea163843bdf3c87 Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 9 Jul 2024 17:40:45 +0600 Subject: [PATCH] web/i18n: add fallback locale --- web/src/lib/i18n/translations.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/lib/i18n/translations.ts b/web/src/lib/i18n/translations.ts index ca61e89b..7c8cb476 100644 --- a/web/src/lib/i18n/translations.ts +++ b/web/src/lib/i18n/translations.ts @@ -23,6 +23,7 @@ for (const [ path, loader ] of Object.entries(locFiles)) { const defaultLocale = 'en'; const config: Config = { + fallbackLocale: defaultLocale, translations: Object.keys(parsedLocfiles).reduce((obj, lang) => { return { ...obj,