Select locale by cookie/localStorage #441
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 andhttps://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.
Beta Was this translation helpful? Give feedback.
All reactions