-
Hello, Was playing with the new update today, and I tried setting the localeCookie option to false to see what was the impact on my apps. I noticed that the accept-language header in any request will always be the defaultLocale with no cookie, even if a different language was correctly set on the client using url for example. Is that the expected behavior ? If not, happy to open a bug ticket, but I was wondering if it was a limitation to this option. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hmm, nope—that doesn't sound right to me. The Can you share your routing config and how you test the behavior? We have quite an extensive test suite for the middleware (see |
Beta Was this translation helpful? Give feedback.
Ah, got it! So you were calling a Route Handler from the client and relied on reading
NEXT_LOCALE
there, is that correct? Maybe you can consider an explicit contract there, e.g. by passing a?locale=…
search param (see also: Route Handlers)