Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support passing locale by state/cookie #539

Closed
EliasVal opened this issue Oct 2, 2023 · 1 comment
Closed

Support passing locale by state/cookie #539

EliasVal opened this issue Oct 2, 2023 · 1 comment
Labels
enhancement New feature or request unconfirmed Needs triage.

Comments

@EliasVal
Copy link

EliasVal commented Oct 2, 2023

Is your feature request related to a problem? Please describe.

I'm using next-intl and it has been great so far, but I want to integrate it with server components too.
But the docs don't mention anything about being able to set the locale from a client's cookie.

I'd love to have this feature since my workplace requires it to be passed by cookie instead of subdomain/URL slug.

Describe the solution you'd like

Being able to set the locale using a client cookie that could be sent with the HTTP requests that go to the server (if that is possible)

Describe alternatives you've considered

None.

@EliasVal EliasVal added enhancement New feature or request unconfirmed Needs triage. labels Oct 2, 2023
@amannn
Copy link
Owner

amannn commented Oct 2, 2023

Great to hear if it works well for you so far!

The middleware docs should have some answers for you. Can you have a look?

I'll move this to a discussion, since this seems to be a usage question.

Repository owner locked and limited conversation to collaborators Oct 2, 2023
@amannn amannn converted this issue into discussion #542 Oct 2, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants