Skip to content

Commit 9146f8c

Browse files
committed
fix(i18n): Do not redirect french users to /fr on login
1 parent 8b7a148 commit 9146f8c

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

next-i18next.config.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
module.exports = {
22
i18n: {
3+
localeDetection: false, // Disable locale detection for now. It prevents next to redirect user to /<locale> on /
34
defaultNS: "messages",
45
defaultLocale: "en",
5-
fallbackLng: "en",
66
locales: ["en", "fr"],
7-
pluralSeparator: "___",
8-
// This option will reload your translations whenever serverSideTranslations is called
9-
reloadOnPrerender: true,
10-
11-
// allow an empty value to count as invalid (by default is true)
12-
returnEmptyString: false,
137
},
8+
fallbackLng: "en",
9+
pluralSeparator: "___",
10+
// This option will reload your translations whenever serverSideTranslations is called
11+
reloadOnPrerender: true,
12+
13+
// allow an empty value to count as invalid (by default is true)
14+
returnEmptyString: false,
1415
};

0 commit comments

Comments
 (0)