You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
I ran into issues when using createI18n and then useI18n (most likely something due to my vue-cli webpack setup). But it made me wonder why you are using the i18nInstance from createI18n?
I slightly amended the useI18n code to use the $i18n instance that is on the current Vue instance instead:
I ran into issues when using
createI18n
and thenuseI18n
(most likely something due to my vue-cli webpack setup). But it made me wonder why you are using thei18nInstance
fromcreateI18n
?I slightly amended the
useI18n
code to use the$i18n
instance that is on the current Vue instance instead:This way vue-i18n can be instantiated as usual and
createI18n
isn't needed (but could still be used). In the component you just useuseI18n
.I might be missing something but wouldn't this make the code much easier to use?
The text was updated successfully, but these errors were encountered: