From f3e98b0fbd410c49f45c9f0b078c63cc7b21647f Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 6 Nov 2020 14:46:51 +0100 Subject: [PATCH] fix: allow fallbackLng to be set to false (#862) * fix: allow setting fallbackLng to false in production * fix: allow setting fallbackLng to false in production --- src/config/create-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/create-config.ts b/src/config/create-config.ts index 309a2670..51dbdd07 100644 --- a/src/config/create-config.ts +++ b/src/config/create-config.ts @@ -125,7 +125,7 @@ export const createConfig = (userConfig) => { /* Set fallback language to defaultLanguage in production */ - if (!userConfig.fallbackLng) { + if (typeof userConfig.fallbackLng !== 'boolean' && !userConfig.fallbackLng) { combinedConfig.fallbackLng = process.env.NODE_ENV === 'production' ? combinedConfig.defaultLanguage : false