Static GitHub Issues

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

prev: cannot access plugins in middleware
next: How to properly inline external JS referenced in the Nuxt generated HTML files?

Something like this:

actions: {
  nextStage ({ state, commit, dispatch }, params) {
    const text = vue.$t('message.chat.name-message-1')
  }
}
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1744">#c1744</a>)</em></sub></div>