add: translation in complete register

This commit is contained in:
Alexandro Uc Santos
2024-05-20 20:38:20 -06:00
parent c08567beda
commit 6aa95a6bd1
7 changed files with 103 additions and 45 deletions

View File

@@ -2,9 +2,11 @@
import { ref } from 'vue';
import VueMultiselect from 'vue-multiselect'
import { searchcategories } from '../../services/public';
import { useI18n } from 'vue-i18n';
const options = ref([]);
const isLoading = ref(false);
const { t } = useI18n();
// defineProps(['selectedCategory']);
defineProps({
@@ -38,18 +40,18 @@
:close-on-select="true"
@search-change="searchCategory"
@remove="$emit('clear-option')"
placeholder="Busca por segmento"
label="name"
track-by="name"
selectLabel="Presione para seleccionar"
selectedLabel="Selecionado"
deselectLabel="Presione para remover selecion"
:placeholder="t('labels.selectSegment')"
:selectLabel="t('global.helpSelected')"
:selectedLabel="t('global.selected')"
:deselectLabel="t('global.removeSelected')"
>
<template #noResult>
Oops! No se encontro coincidencias.
{{ t('global.notFound') }}
</template>
<template #noOptions>
Lista vacia.
{{ t('global.emptyList') }}
</template>
</VueMultiselect>
</template>