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
The translate function is currently only exposed on the Vue instance and inside the components. The vuex-i18n state is actually stored in the vuex module i18n (you should be able to see it in the vue devtools). However, the translate function is not available on the store.
A workaround would be to pass the $t function from the component to the respective action and further on to a mutation if required.
Hi!
We are having exactly same issue... I think in the same way that vuex-i18n registers $t function in Vue and a new vuex module, it could register a kind of $t getter to access translations from other modules.
hi,
i have tried rootstate.$i18n.t it didn't work.
Any workaround ?
thanks in advance.
The text was updated successfully, but these errors were encountered: