vue3-gettext icon indicating copy to clipboard operation
vue3-gettext copied to clipboard

How to import vue3-gettext into nuxt projects?

Open snowdream opened this issue 2 years ago • 1 comments

How to import vue3-gettext into nuxt projects?

snowdream avatar Feb 25 '23 01:02 snowdream

@snowdream Do you have a specific problem?

I have not used Nuxt recently, but looking at the documentation I think you can just create a plugin file and do something like this:

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(createGettext(...))
})

I don't know if there are issues with SSR or something.

lzurbriggen avatar Feb 28 '23 08:02 lzurbriggen