This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
Access the this.$i18n via the composition API #24
Unanswered
andreaszehender
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
not all methods of the VueI18n class seems to be exposed by the composable.
Example code:
We use this to override default translations from a section by custom translations from prop values.
We use as these as well:
But none of theses seems to be available through the composable.
How can we access this.i18n via the compositition API? We could use the getCurrentInstance().proxy.i18n, but that seems to be not the official way.
Best,
Andreas
Beta Was this translation helpful? Give feedback.
All reactions