I have a Vue 2 project. This contains i18n
plugin to translate. I can use it in components like this.$t('path.to.msg')
but I dont know how to access it in other plugin.
Vue documentation says import Vue and then use it like Vue.somePlugin()
. But it does not work like Vue.t()
.