Static GitHub Issues

[2354] How to get access to i18 plugin from context

prev: Unable to update CSS variable (Follow up of #2342)
next: how to use .js/.jsx file instead .vue for page?

So I have some asyncData logic, now i need to get access to i18 $t method in it, how to do that?

... page component
    asyncData ({ store, redirect, t }) {
      const user = store.getters.loggedUser
      if (!user.userProfile) {
        redirect(path.route.profile)
        store.commit('EMIT_TOAST', {
          timeout: 3000,
          type: 'error',
          message: t('toasts.results_disabled')
        })
      }
    },
<!--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/c2050">#c2050</a>)</em></sub></div>