Replies: 1 comment
-
|
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, only
ceandtypeare supported, but addinguidsupport would be useful in Vue DevTools.Background:
vue-i18n supports a Vue DevTools plugin. Internally, vue-i18n uses a concept called locale scope, similar to a component tree. Calling the
useI18ncomposable provides i18n debugging functionality as a Vue DevTools plugin by associating the locale scope with the component instance.I’ve heard that, In Vue 4 or future versions, obtaining the component instance using
getCurrentInstancewill no longer be possible. Therefore, while vue-i18n is considering changes to its internal implementation (planned to switch to a provide-inject-based approach), it still requires information about which component the locale scope is associated with.GenericComponentInstancecurrently supports uid. Vue DevTools can obtain this component instance. IfuseInstanceOptioncan retrieve the uid, this information can be used to link it to the locale scope. By obtaining the uid from the component instance on the Vue DevTools side, vue-i18n can continue to support the plugin for Vue DevTools as before.Beta Was this translation helpful? Give feedback.
All reactions