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 { searchcities } from '../../services/public';
import { useI18n } from 'vue-i18n';
const options = ref([]);
const isLoading = ref(false);
const { t } = useI18n();
// defineProps(['selectedCities', 'multiple']);
defineProps({
@@ -42,18 +44,18 @@
:disabled="disabled"
@search-change="searchState"
@remove="$emit('clear-option')"
placeholder="Busca por ciudad"
label="city_name"
track-by="city_name"
selectLabel="Presione para seleccionar"
selectedLabel="Selecionado"
deselectLabel="Presione para remover selecion"
:placeholder="t('labels.selectCity')"
: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>
Escriba para obtener lista.
{{ t('global.emptyList') }}
</template>
</VueMultiselect>
</template>