I’m using NextJS 13 for my react app and I have implemented multi language options for the user to choose from with English being the default.
As far as how its currently implemented, the language is in the url as in 'example.com/en'
, and the relevant language dictionary is being passed from the server side through the server components to where its needed.
Id like to implement somehow that the default language for the user will be the last one that the user chose, and Im not sure how or where to begin.
Should I do it using cookies, local storage or maybe something else?
Thank you