From dedcadee7985e0c101a168113ada1b091f2cd957 Mon Sep 17 00:00:00 2001 From: Christiaan Scheermeijer Date: Wed, 31 May 2023 10:17:09 +0200 Subject: [PATCH] fix(project): allow empty translations to fall back to the default language --- src/i18n/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i18n/config.ts b/src/i18n/config.ts index 9157983d4..810d2ff11 100644 --- a/src/i18n/config.ts +++ b/src/i18n/config.ts @@ -54,6 +54,8 @@ const initI18n = async () => { .init({ supportedLngs: supportedLanguages.map(({ code }) => code), fallbackLng: defaultLanguage, + // this option ensures that empty strings in translations will fall back to the default language + returnEmptyString: false, ns: NAMESPACES, defaultNS: 'common', fallbackNS: 'common',