Persist changed language without NEXT_LOCALE cookie #506
Unanswered
hartherbert
asked this question in
Q&A
Replies: 1 comment
-
You can use the localStorage and create a custom hook to redirect to the preferred locale, but then the redirect will be done in client-side... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My nextjs app is running in a third-party context (iframe) and now with all the new cookie regulations (no third-party cookies anymore), it is not possible for me to set the NEXT_LOCALE cookie.
I was wondering if any of you knows a way to force nextjs to use a specified locale without the cookie? Maybe localStorage?
Thanks for any response!
Beta Was this translation helpful? Give feedback.
All reactions