amannn / next-intl

🌐 Internationalization (i18n) for Next.js
https://next-intl-docs.vercel.app
MIT License
2.58k stars 236 forks source link

Next-intl translation are not working #1540

Closed mohitrakh closed 3 days ago

mohitrakh commented 3 days ago

Description

On my login page the translation of navbar is not working after refresh it when i navigate to different page and then come on the login it works but when i refresh the page it stops working for some reason i don't understand I get hydration error on the login page as well the thing is when removed the header and check the login page it did not had any hydration error as well so issue is in the header component but header works completely fine on other page and translation works as great as well it just than in the login page it stops

Verifications

Mandatory reproduction URL

http://localhost:3001/login

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. Click on …
  3. See error: …

i cant give the website as it is confidential

Expected behaviour

I want the header to be translated on every page

amannn commented 3 days ago

Sorry, I don't know either and also can't have a look since there's no reproduction.

I'll move this to a discussion since it looks like a usage question.