quasarframework / vue-cli-plugin-quasar

Quasar Framework Vue CLI plugin
https://quasar.dev
MIT License
68 stars 14 forks source link

Not so clear where to set i18n lang and other quasar.conf.js params #9

Closed eladcandroid closed 6 years ago

rstoenescu commented 6 years ago

Hi,

quasar.conf.js is a feature available only through Quasar CLI. It is NOT used when choosing the vue-cli path.

eladcandroid commented 6 years ago

So how can I set i18n parameter alternatively?

rstoenescu commented 6 years ago

If when you added vue-plugin-cli-quasar you've chosen to import full Quasar then:

import Quasar from 'quasar'
// ---> Quasar.i18n.set(lang)

Otherwise:

import { Quasar } from 'quasar'
// ---> Quasar.i18n.set(lang)

Alternatively, you can also set i18n language when installing Quasar Vue plugin:

import langDE from 'quasar-framework/i18n/de'
Vue.use(Quasar, { .... i18n: langDE ... }