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

Select locale by cookie/localStorage #440

Closed
jim-king-2000 opened this issue Aug 3, 2023 · 1 comment
Closed

Select locale by cookie/localStorage #440

jim-king-2000 opened this issue Aug 3, 2023 · 1 comment
Labels
enhancement New feature or request unconfirmed Needs triage.

Comments

@jim-king-2000
Copy link

jim-king-2000 commented Aug 3, 2023

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

I check the example and find that it selects the locale by url. https://xxx.com/en/ is for English and https://xxx.com/de/ for German.

Describe the solution you'd like

Could you please provide an example that it selects locale by cookie/localStorage instead of url?

Describe alternatives you've considered

We don't use additional path of url to select locale. It destroy the original structure of the existing project. We'd like to resort to cookie/localStorage.

@jim-king-2000 jim-king-2000 added enhancement New feature or request unconfirmed Needs triage. labels Aug 3, 2023
@amannn
Copy link
Owner

amannn commented Aug 4, 2023

I think you're looking for this: https://next-intl-docs.vercel.app/docs/routing/middleware#never-use-a-locale-prefix

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

Repository owner locked and limited conversation to collaborators Aug 4, 2023
@amannn amannn converted this issue into discussion #441 Aug 4, 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