Next.js + Rosetta + TypeScript with native i18n support | Lightweight, simple, easy to integrate, no custom server required and efficient because will only download the locale you need.
Here's a quick fix for it. For some reason, while using turborepo, the useRouter is not ready when next-rosetta is running. Therefore, this small fix will set default values to it.
Please pay attention to the removal of !. It became obsolete since, defaultLocale always has a default value.
Please check: https://github.com/useflyyer/next-rosetta/issues/40
Here's a quick fix for it. For some reason, while using turborepo, the
useRouter
is not ready whennext-rosetta
is running. Therefore, this small fix will set default values to it.Please pay attention to the removal of
!
. It became obsolete since,defaultLocale
always has a default value.