farmOS / field-kit

A modular, offline-first companion app to farmOS.
https://farmOS.org
GNU General Public License v3.0
60 stars 39 forks source link

Add a getter for $t() that can be used in Vuex #378

Closed jgaehring closed 4 years ago

jgaehring commented 4 years ago

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.