Replies: 2 comments
-
|
Same here... Option API is a more structured and clearer than the composition API. I don't understand the decision that led to the drop of support... |
Beta Was this translation helpful? Give feedback.
-
|
I totally share this frustration. The Vue team has been very clear that the Options API is not deprecated and remains a fully supported, first-class API style. Yet, switching vue-i18n to composition mode (to silence the v11 warning) silently breaks component-scoped translations — To address exactly this situation, I created vite-plugin-vue-i18n-sfc-auto-import. The plugin transparently injects the necessary If you're stuck in this situation, feel free to give it a try! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I just noticed this alert in my browser:
[intlify] Legacy API mode has been deprecated in v11. Use Composition API mode instead.
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html
Not sure what you exactly mean with Legacy API, but if you mean that the Options API of Vue is deprecated, then I do not see a trace of that in the docs:
https://vuejs.org/guide/introduction.html#api-styles
=> Do you really mean that the options API is deprecated in i18n?
==> if that is the case: Why? I like using the option API and don't like to use the composition API.
I like using i18n in the options API version for 2 reasons:
Beta Was this translation helpful? Give feedback.
All reactions