primefaces / primevue-nuxt-module

MIT License
70 stars 11 forks source link

It's not possible to change locale settings #36

Closed OlePc closed 8 months ago

OlePc commented 8 months ago

When using the nuxt module, I don't see any option for setting the locale options specified here https://primevue.org/configuration/#setlocale

Am I missing something, or is the feature missing from the nuxt module?

mertsincan commented 8 months ago

Hi,

Did you try;

// nuxt.config.js
primevue: {
   options: {
        locale: {
            accept: 'Aceptar',
            reject: 'Rechazar',
        }
   }
}
zavvla commented 4 months ago

@mertsincan hi, I'm facing the same problem with Nuxt 3.11.1 with Nitro 2.9.4.

primevue: { options: { locale: { accept: "Aceptar", reject: "Rechazar", }, }, },

image

Could you help me? Maybe I'm writing something wrong, or is there some way to set the global language? Can I have a sample code?

p.s This breaks all dependencies that depend on locale "Uncaught (in promise) RangeError: Maximum call stack size exceeded"