Replies: 1 comment
-
In my code $i18n is {}, i18n is not exist,I wonder how to change locale in .vue file,and how to get all the locale. |
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
-
Hey,
I've setup i18n-next (Vue 3) and it works perfectly, for changing global scope locale. I'm using a Dropdown to change the locale and save it in localStorage.
I have a seperate component, in which I'd like to change the local scope locale, but it always ends up changing the global scope locale as well. Am I doing something wrong? Here are the snippets of code:
i18n.js file:
the dropdown in the component, where I change locale globally:
the dropdown in the component, where I want to change locale locally:
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions