Save language after refresh #154
Unanswered
carstensbix
asked this question in
Q&A
Replies: 1 comment
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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