Using i18n in helper/utils #1420
Unanswered
kelbertpaul
asked this question in
Q&A
Replies: 1 comment
-
It's available in certain contexts like Nuxt Context, Vue Instance and store. It can't be just freely imported from anywhere. You'd have to pass it to your utilities one way or another. |
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
-
Hi everyone,
I'm trying to use i18n inside a helper :
but I got this error :
Cannot read properties of undefined (reading '$t').
I did try to import the plugin to refer to it but it doesn't seem to work neither ...
Here is the architecture of my project in case I did something wrong.
Thanks for you help.
Beta Was this translation helpful? Give feedback.
All reactions