-
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. 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 likeBeing 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 consideredNone. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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. |
Beta Was this translation helpful? Give feedback.
Oh! managed to figure out a solution.
first, my Regex was faulty, so now changed it to:
And the middleware was still redirecting by the locale so I have used this to go around it: