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

unable to change language #1645

Open
3 tasks done
Kam125 opened this issue Jan 3, 2025 · 1 comment
Open
3 tasks done

unable to change language #1645

Kam125 opened this issue Jan 3, 2025 · 1 comment
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@Kam125
Copy link

Kam125 commented Jan 3, 2025

Description

Greetings everyone.

I'm using next-intl for translation and as per examples it works perfectly fine. But as soon I deploy it on vercel my website return 500 | Internal server error and nothing shows up. After debugging I found out if I use cookies from next/headers that's what causing the issue. As soon I use js-cookie or use localstorage to store selected language language doesn't change as it returns always the old value or default value which is en. It doesn't work on both enviroments.

I'm debugging this issue from past 4 days. Any help will be much appreciated. I'm using next-intl without I18n routing.

Verifications

Mandatory reproduction URL

https://abc-landing-page.vercel.app/

Reproduction description

it's strange as it's working on development but giving 500 | internal server error

Expected behaviour

Should work on deployment url as well.

@Kam125 Kam125 added bug Something isn't working unconfirmed Needs triage. labels Jan 3, 2025
@pieterjanscheir
Copy link

The reproduction url does not work. There is no deployment linked to it.

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

No branches or pull requests

2 participants