You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running npm run dev, the AppDirI18nProvider provider is loaded when opening the site and lang is set. After refreshing the site, AppDirI18nProvider is no longer loaded and lang is null as a result.
Closing this as this was not a bug, but my error. Where I went wrong was having client components called from inside my layout.tsx file — translations in those did not work.
Doesn't next-translate claim to work seemlessly for both server and client components?
If there are exceptions to this, where are they stated?
Having client components in layout.tsx doesn't seem to cause any other issues - it's not clear to me why you consider it "your error".
What version of this package are you using?
2.6.0 (next-translate & next-translate-plugin)
What operating system, Node.js, and npm version?
MacOS - Ventura 13.4
NPM - 9.8.1
Node - 18.18
What happened?
After running
npm run dev
, theAppDirI18nProvider
provider is loaded when opening the site andlang
is set. After refreshing the site,AppDirI18nProvider
is no longer loaded andlang
isnull
as a result.I recorded a video to demonstrate the issue:
https://www.loom.com/share/82fce57da9594cd1a3f358014ec05af6?sid=eca255dc-0505-484f-8a9f-d565ada94d05
What did you expect to happen?
I expect
lang
to still be set.Are you willing to submit a pull request to fix this bug?
Sure, if you can help identify where the bug is.
The text was updated successfully, but these errors were encountered: