Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Problems changing the languaage #31

Open
sowinski opened this issue May 6, 2020 · 2 comments
Open

Problems changing the languaage #31

sowinski opened this issue May 6, 2020 · 2 comments

Comments

@sowinski
Copy link

sowinski commented May 6, 2020

Hi,

how can I change the language of nuxt-validate?
I also use nuxt-i18n.

In the readme there is the following line:

notice: If you use nuxt-i18n module, declare the nuxt-validate module at before it.
So my modules look like that at the moment.

  modules: [
    'bootstrap-vue/nuxt',
    '@nuxtjs/axios',
    '@nuxtjs/eslint-module',
    '@nuxtjs/sentry',
    'nuxt-validate',
    'nuxt-i18n'
  ],

So this is correct, right?

  1. How can I change the language statically to for example french.
  2. Why is nuxt-validate not picking the language from nuxt-i18n. What additional steps do I need?

Thank you!

@sowinski
Copy link
Author

sowinski commented May 14, 2020

I think there is a bug "Using top level options".

If I write the options directly in the module like that everything works.

modules: [
    'bootstrap-vue/nuxt',
    '@nuxtjs/axios',
    '@nuxtjs/eslint-module',
    '@nuxtjs/sentry',
    ['nuxt-validate', {
      nuxti18n: true,
      classes: true,
      classNames: {
        valid: 'is-valid',
        invalid: 'is-invalid'
      },
      fieldsBagName: 'veeFields'
    }],
    'nuxt-i18n'
  ],

Can someone confirm this problem?

@miteyema
Copy link

@sowinski I confirm this problem too. I also solved it by passing the options directly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants