diff --git a/src/views/locale/LocaleDemo.vue b/src/views/locale/LocaleDemo.vue index 0f18bfbc2..31564dfdc 100644 --- a/src/views/locale/LocaleDemo.vue +++ b/src/views/locale/LocaleDemo.vue @@ -45,15 +45,15 @@ export default {
Composition API

-import { defineComponent, reactive } from "vue";
+import { defineComponent } from "vue";
 import { usePrimeVue } from "primevue/config";
 
 export default defineComponent({
     setup() {
         const changeToSpanish = () => {
             const primevue = usePrimeVue();
-            primevue.config.locale.accept: 'Aceptar';
-            primevue.config.locale.reject: 'Rechazar';
+            primevue.config.locale.accept = 'Aceptar';
+            primevue.config.locale.reject = 'Rechazar';
         }
     }
 });