Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation with Nuxt.js and i18n #297

Open
cdefy opened this issue Aug 31, 2021 · 0 comments
Open

Translation with Nuxt.js and i18n #297

cdefy opened this issue Aug 31, 2021 · 0 comments

Comments

@cdefy
Copy link

cdefy commented Aug 31, 2021

Hi,

First thanks for your work. I tried tiptap on it's own and if I managed to have the editor working, I couldn't understand how to add the menu (bold, etc.) With your plugin, it worked right away.

But I'm struggling to have the tooltip when you hover the menu (bold, italic...) in French.

I followed your example for Nuxt :

  • I've got @nuxtjs/vuetify and tiptap-vuetify dependencies in package.json
  • I've got the plugin and it's declared in nuxt.config.js (plugins and build)
import Vue from 'vue'
import { TiptapVuetifyPlugin } from 'tiptap-vuetify'
import 'tiptap-vuetify/dist/main.css'

export default ({ app }) => {
  Vue.use(TiptapVuetifyPlugin, {
    vuetify: app.vuetify,
    iconsGroup: 'mdi',
  })
}

As you say it's "automatic detection of the current language through the Vuetify" I added some configuration (following Vuetify doc) and maybe it's here I'm wrong:

  • nuxt.config.js
vuetify: {
  optionsPath: './vuetify.options.js`
}
  • vuetify.options.js (at the same level as nuxt.config.js)
export default function ({ app }) {
  return {
    lang: {
      t: (key, ...params) => app.i18n.t(key, params),
    },
  }
}

But tooltip are still in English. My only locales in i18n for now is French so what am I missing?

Thanks to anyone for any help or advice. If you need any more informations, please let me know.
Cheers!

@cdefy cdefy changed the title French translation with Nuxt.js and i18n Translation with Nuxt.js and i18n Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant