Refactor sample

pull/1021/head
Cagatay Civici 2021-02-18 13:02:47 +03:00
parent f981737c35
commit 041cfbf232
1 changed files with 3 additions and 3 deletions

View File

@ -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';
}
}
});