Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydratation issue with i18next #1

Open
HakkaOfDev opened this issue Jan 4, 2023 · 3 comments
Open

Hydratation issue with i18next #1

HakkaOfDev opened this issue Jan 4, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@HakkaOfDev
Copy link
Owner

HakkaOfDev commented Jan 4, 2023

This issue appears when you'r on the website, change the language and refresh the page.
In the console will appear the hydratation issues due to the difference between the server and the client.
The error appears only in local not in production.

@HakkaOfDev HakkaOfDev added the bug Something isn't working label Jan 4, 2023
@22chrs
Copy link

22chrs commented Mar 12, 2023

Have you found a solution?

@22chrs
Copy link

22chrs commented Mar 12, 2023

I deleted the i18next packages and all dependencies but get still the error. My guess was to use react-i18next instead of i18next, but I guess that is not the error at all. Do you have any idea about that?

@22chrs
Copy link

22chrs commented Mar 12, 2023

Okay, stupid commit. You already used react-i18next. Anyway. Adding these few lines worked out for me:
https://stackoverflow.com/questions/73714388/nextjs-hydration-error-when-i-change-language?noredirect=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants