Skip to content

How is an user's locale being stored? #429

Answered by amannn
RaenonX asked this question in Q&A
Discussion options

You must be logged in to vote

The server side is stateless and changing the locale means that a cookie is set in the browser. Therefore any request from a browser that has received this cookie will use the latest locale.

Your situation sounds similar to https://next-intl-example-next-13.vercel.app/, which also has two routes. Does the behavior of the example look correct to you? It's hosted on Vercel, which is completely stateless.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@RaenonX
Comment options

@amannn
Comment options

@RaenonX
Comment options

@amannn
Comment options

@RaenonX
Comment options

Answer selected by RaenonX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants