More complete example of using a locale

UI Components for Vue
clienti
Posts: 5
Joined: 19 Dec 2022, 12:15

23 Feb 2023, 15:09

tugce.kucukoglu wrote:
12 Nov 2021, 14:14
In main.js file, you can define locales:

Code: Select all

const app = createApp(App);

app.use(PrimeVue,{
    locale: {
        accept: 'Aceptar',
        reject: 'Rechazar'
    }
});
That does not work. Do I have to do anything else?

bahadirsofuoglu
Posts: 66
Joined: 06 Sep 2022, 08:59

09 Mar 2023, 12:23

clienti wrote:
23 Feb 2023, 15:09
tugce.kucukoglu wrote:
12 Nov 2021, 14:14
In main.js file, you can define locales:

Code: Select all

const app = createApp(App);

app.use(PrimeVue,{
    locale: {
        accept: 'Aceptar',
        reject: 'Rechazar'
    }
});
That does not work. Do I have to do anything else?
Hi,
I believe it will be very useful to prepare an example of PrimeVue locale working with i18n. We would be very happy if you would like to contribute when we prepare and share an example.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests