Replies: 1 comment 5 replies
-
I discovered that the issue is when the primary language is set to Czech and then user is not able to switch it, any idia? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I’m currently using next-intl in my Next.js project to handle language switching, and I’m encountering a peculiar issue that only affects one of my colleagues.
Configuration:
• defaultLocale is set to en
• localePrefix is set to as-needed
The problem:
When my colleague attempts to switch the language from en to cs, the /cs prefix gets removed from the URL, redirecting them back to /, and the language switches back to English (en). This issue doesn’t occur for me or any other team members.
For example:
• Expected behavior: Switching from /en to /cs should update the URL to include /cs and load the page in Czech.
• What happens for my colleague: The URL reverts to / (English default) instead of showing /cs.
We’ve checked basic things like clearing the browser cache and testing in incognito mode, but the issue persists specifically for their environment.
Also it works for them on my local server but on production or staging it doesn't.
Beta Was this translation helpful? Give feedback.
All reactions