Skip to content

Commit

Permalink
fix: allow fallbackLng to be set to false (#862)
Browse files Browse the repository at this point in the history
* fix: allow setting fallbackLng to false in production

* fix: allow setting fallbackLng to false in production
  • Loading branch information
sverps committed Nov 6, 2020
1 parent abdf065 commit f3e98b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/create-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3e98b0

Please sign in to comment.