Vue 3 support #987
adnan-sahin
started this conversation in
General
Replies: 1 comment 1 reply
-
I would guess, since your setup code, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I installed the "vue-i18n": "^9.1.9" package in vue 3 project.
i18n is registered in main.js file. you can see how to create i18n instance and export the instance below.
i18n.js
// Create i18n instance with options
i18n is also registered in an external javascript file like this
import i18n from '@/plugins/i18n'
.The same i18n instance is used in the external js file.
when I call
t
function like thisi18n.t('cannotBeBlank')
in external file, I got error below.Beta Was this translation helpful? Give feedback.
All reactions