Right now the t.js mixin makes the $t() function available in all components, but we can't access it from anywhere else outside components. It would be helpful for translating certain strings, like error messages, contained in Vuex modules. I think providing a getter would serve this function pretty well.
Right now the
t.js
mixin makes the$t()
function available in all components, but we can't access it from anywhere else outside components. It would be helpful for translating certain strings, like error messages, contained in Vuex modules. I think providing a getter would serve this function pretty well.