【发布时间】:2021-10-01 11:01:39
【问题描述】:
我已经在几个项目中使用next-i18next 包,效果很好。
在我当前的项目中,我需要集成 i18n,但这次只支持 cookie,没有国际化路由,我想知道我是否可以使用这个包来实现,或者我应该回到 react-i18next 和 i18next
示例:
// 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
我认为我们不能开箱即用地使用 next/router locale,但这作为集成的缺点是可以接受的。
【问题讨论】:
标签: internationalization next.js react-i18next next-i18next