Replies: 1 comment
-
I've tested a little bit more out. It seems that the error only occours if it finds an translation. If the translation key is missing I get a warning. If it is there then it throws the exception. I also checked it with the vue devtools for firefox. It seems that vue-i18n is configured and loaded correctly even the locale is passed correctly to all components. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've started to use Vue3 with the composition API and the vue-i18n package. But if I try to load an translation the console breaks with the following error:
Uncaught SyntaxError: missing ] in computed property name
I spent a lot of time of trying and chaning things but nothing works. Maybe someone of you can help :-)
In my main.ts I've added the module like the following:
In my HotelFinder.vue component I tried to use the translation:
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions