有没有办法在没有 Next.js 国际化路由的情况下使用 next-i18next ?

kac*_*har 6 internationalization next.js react-i18next next-i18next

next-i18next已经在几个项目中使用了 package,而且效果很好。

在我当前的项目中,我需要集成 i18n,但这次只有 cookie 支持,没有国际化路由,我想知道我是否可以用这个包实现这一点,或者我应该返回react-i18nexti18next

样本:

// No cookie or EN cookie
https://app.example.com shows EN version

// Cookie `next-i18n-lang` set to specific language (IT, DE, etc)
https://app.example.com shows translated version
Run Code Online (Sandbox Code Playgroud)

我认为我们不能next/router locale开箱即用,但这作为集成的缺点是可以接受的。