Replies: 2 comments 1 reply
-
You need to store it somewhere like a cookie, user's session or the DB. For cookies and user session you can pass them to RemixI18next so after you save them the getLocale function will read from there, if you store in the DB query the DB directly. You can see an example here https://github.com/dev-xo/remix-i18n-example |
Beta Was this translation helpful? Give feedback.
-
Hi @sergiodxa, I've applied the changes from the repo you've suggested. Everything works just fine! But I can't figure out one thing - looks like in order to change the language, the default behaviour is to navigate to |
Beta Was this translation helpful? Give feedback.
-
When i use the i18n.changeLanguage function, the new language won't be remembered if i refresh the page. I can see my won't change either. How can i save this new language?
Beta Was this translation helpful? Give feedback.
All reactions