I have the following next-i18next.config.js file
module.exports = {
i18n: {
locales: ["en", "de-DE", "fr"],
defaultLocale: "en",
localeDetection: false,
domains: [
{
domain: "my-domain.com",
defaultLocale: "en",
},
{
domain: "my-domain.fr",
defaultLocale: "fr",
http: true,
},
{
domain: "my-domain.de",
defaultLocale: "de-DE",
http: true,
},
],
},
};
I have set localeDetection
to false
, but when I change the language from en to fr my app is being redirected to http://my-domain.fr
My next.config.js is the following
const { i18n } = require("./next-i18next.config");
module.exports = {
i18n,
};
Am I missing something?