Replies: 1 comment
-
So it seems that this returns different Vue instances depending on the time. The first one has |
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 there!
I have an issue where vue-i18n works initially and translates the texts on the first page, but when changing the route and coming back to the same page as before then vue-i18n throws a SyntaxError in here:
https://github.com/intlify/vue-i18n-next/blob/acfba4b6f56323a7d3913db88e7bf2e25a2a3208/packages/vue-i18n-core/src/i18n.ts#L703-L709
On first load, VUE_I18N_SYMBOL is defined
Here the translation works as expected. The vue-i18n plugin seems to be installed correctly.
On second load, VUE_I18N_SYMBOL is undefined; breaking the translations (and throwing an error)
Here the if check in the highlighted line yields
true
, causing the code to throw an errorBn.NOT_INSTALLED
.NOTE that the
_uid
oft.appContext.app
is different. Is this related to my issue?!The error (not saying much but maybe it helps someone):
Environment
I'm using vue-18n@9.9.0 with composition API (legacy: false), and the error is thrown by a i18n-t component in TSX.
I appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions