You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LasyIsLazy
changed the title
Is there any way to make injected properties locale scope in Composition mode
Is there any way to make injected properties local scope in Composition mode
Apr 28, 2022
Clear and concise description of the problem
For some reason, I have to use both Vue composition API and Vue legacy API in my project.
I prefer composition API, so I set
legacy: false
andglobalInjection: true
, i18n will be in Composition mode and I can use$i18n
in code.But
$i18n.locale
always refers to global scope locale, and I can't use local scope in Vue legacy code.Suggested solution
Add some config to change injected properties's scope, when the Vue component have locale scope, injected properties can refers to local scope
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: