Closed zackrw closed 11 months ago
Can you share your middleware configuration, and share the code/a reproduction?
The example here works fine on a subpage: https://github.com/QuiiBz/next-international/blob/main/examples/next-app/app/%5Blocale%5D/subpage/page.tsx
Closing as no reproduction has been provided. Feel free to re-open if needed!
I figured this out BTW. It was because a single client component was accidentally async
, which caused everything to hang and/or behave unpredictably.
Describe the bug In a client component, I have useCurrentLocale() working (e.g. returns 'pt-BR') and getI18n() working on the SSR wrapper page. But useI18n is a no-op here.
Everything works on the homepage "/:locale", but on "/:locale/dashboard" it does not. changeLocale() is also not working on the dashboard. Has anyone else seen route-specific bugs?
About (please complete the following information):