-
SummaryHi, I'm trying to implement internationalization routes that support SEO. I'm getting a problem with the request cookie value. Here is my code: https://codesandbox.io/p/github/agusnovi/internationalization-routes/main Attention:
Problem:
Desired:
middleware.ts
SelectLocale.tsx
|
Beta Was this translation helpful? Give feedback.
Answered by
agusnovi
Mar 27, 2025
Replies: 1 comment
-
solved by manually setting the cookie before redirecting uses document.cookie sintax in the client component based from selected language . it will makes the request use the new cookie value which is new language. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
agusnovi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
solved by manually setting the cookie before redirecting uses document.cookie sintax in the client component based from selected language . it will makes the request use the new cookie value which is new language.