Home

Issue: 1956

How can I use the translate service by vue-i18n in store module actions?

[issue link]

Something like this:

actions: {
  nextStage ({ state, commit, dispatch }, params) {
    const text = vue.$t('message.chat.name-message-1')
  }
}
This question is available on Nuxt.js community (#c1744)