Giter VIP home page Giter VIP logo

Comments (4)

mdbetancourt avatar mdbetancourt commented on June 5, 2024 1

That I need override the "t"property in vuetify https://vuetifyjs.com/en/framework/internationalization#vue-i18n passing a function that use app.i18n.t but I need have access to context is a feature request

Sorry English isn't my primary language

from vuetify-module.

aldarund avatar aldarund commented on June 5, 2024

Not quite understand how its has anything to do with vuetify module.
If you have question please come to discord -> https://discord.gg/nHzfFwe
Github is for issues.

from vuetify-module.

SasanFarrokh avatar SasanFarrokh commented on June 5, 2024

I'm overriding t function to use $i18n, How can i access a vue instance to access to $i18n?
Using it this way currently:

vuetify: {
    rtl: true,
    customVariables: ['~/assets/styles/variables.scss'],
    treeShake: true,
    lang: {
      locales: { fa, en },
      t (key, ...params) {
        return window.$nuxt.$i18n.t(key, params)
      },
      current: 'fa'
    },
    theme: {
      themes: {
        light: {
          primary: '#fb8c00',
          secondary: '#b0bec5',
          accent: '#7C4DFF',
          error: '#b71c1c'
        }
      }
    }
  }

from vuetify-module.

kevinmarrec avatar kevinmarrec commented on June 5, 2024

@Akhail @SasanFarrokh

Indeed it's more likely around a feature request, to be able to access Nuxt context around Vuetify options. I just created #97, you can comment on it or add thumbsup if that's what you would be looking for.

from vuetify-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.