我有以下 next-i18next.config.js 文件
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,
},
],
},
};
我已设置localeDetection
为false
,但是当我将语言从 en 更改为 fr 时,我的应用程序被重定向到http://my-domain.fr
我的 next.config.js 如下
const { i18n } = require("./next-i18next.config");
module.exports = {
i18n,
};
我错过了什么吗?