Refactor sample
parent
f981737c35
commit
041cfbf232
|
@ -45,15 +45,15 @@ export default {
|
|||
|
||||
<h6>Composition API</h6>
|
||||
<pre v-code.script><code>
|
||||
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';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue