Client cookies cannot swtich locale Nextjs #1135
Unanswered
vitalijalbu
asked this question in
Q&A
Replies: 2 comments
-
Maybe this helps:
The example does a bit more, but maybe you can use relevant parts of it. I might include docs for this at some point, for the time being I'm trying to collect use cases for the "without i18n routing" setup from users of the library! (see also #1081) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I’d like to use it based on cookies. Problem is that it doesn’t read
cookies (server side)… but all my components are client side
Il giorno mar 18 giu 2024 alle 12:10 Jan Amann ***@***.***>
ha scritto:
… Maybe this helps:
1. i18n.ts
<https://github.com/amannn/next-intl/blob/cdda4e2eb502ea37b25459ef8271e4d19913cfc7/examples/example-app-router-mixed-routing/src/i18n.ts#L21>
2. updateLocale.tsx
<https://github.com/amannn/next-intl/blob/cdda4e2eb502ea37b25459ef8271e4d19913cfc7/examples/example-app-router-mixed-routing/src/app/app/updateLocale.tsx#L6>
(Server Action)
The example does a bit more, but maybe you can use relevant parts of it. I
might include docs for this at some point, for the time being I'm trying to
collect use cases for the "without i18n routing" setup from users of the
library! (see also #1081
<#1081>)
—
Reply to this email directly, view it on GitHub
<#1135 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJTAGHWCFDLO5NAAXQLDDF3ZIABSJAVCNFSM6AAAAABJPTDGCKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TQMBUGQ4DI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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
-
Hi guys, my locale cookie doesn't work properly:
Beta Was this translation helpful? Give feedback.
All reactions