-
-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per-component translations don't work in Options API #1603
Comments
Thank you for your reporting! In Vue-i18n v9 composition API mode, This means that you cannot access custom blocks resources defined in Vue components. |
Thanks for the reply, but I'm confused by this decision. Vue3 has 2 official API's, I'm not against breaking changes in major versions (that's fine), but not actually supporting one of the APIs goes a bit far (in my opinion). We have a really large enterprise project in Nuxt2. Since Nuxt2 and Vue2 will be EOL soon, we need to move to Nuxt3. Is there no way to expose another global method that automatically uses local scope? So we could search/replace It would be great if you could reconsider your decision, especially in light of Vue3 still fully supporting the Options API. |
Thank you for your feedback. We would like to support migration too, but the EOL schedule for Vue 2 / Nuxt 2 makes it really tough... 😞 The behavior of |
Reporting a bug?
Vue3 officially supports both the Options API and Composition API.
This plugin should provide per-component translations with the Options API as well (it currently doesn't), this seems like a regression.
Expected behavior
Translations to work locally with the
<i18n>
SFC block and the Options API.Reproduction
https://stackblitz.com/edit/vitejs-vite-xfejmg?file=src%2FApp.vue
System Info
Screenshot
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: