feat: refs #6683 add localization for document management features in English and Spanish
This commit is contained in:
parent
c34af4d888
commit
bf6d4f0c5f
|
@ -160,6 +160,9 @@ globals:
|
|||
department: Department
|
||||
noData: No data available
|
||||
vehicle: Vehicle
|
||||
selectDocumentId: Select document id
|
||||
import: Import from existing
|
||||
document: Document
|
||||
pageTitles:
|
||||
logIn: Login
|
||||
addressEdit: Update address
|
||||
|
@ -390,6 +393,7 @@ errors:
|
|||
updateUserConfig: Error updating user config
|
||||
tokenConfig: Error fetching token config
|
||||
writeRequest: The requested operation could not be completed
|
||||
documentIdEmpty: The document identifier can't be empty
|
||||
login:
|
||||
title: Login
|
||||
username: Username
|
||||
|
|
|
@ -164,6 +164,9 @@ globals:
|
|||
noData: Datos no disponibles
|
||||
department: Departamento
|
||||
vehicle: Vehículo
|
||||
selectDocumentId: Introduzca id de gestión documental
|
||||
import: Importar desde existente
|
||||
document: Documento
|
||||
pageTitles:
|
||||
logIn: Inicio de sesión
|
||||
addressEdit: Modificar consignatario
|
||||
|
@ -386,6 +389,7 @@ errors:
|
|||
updateUserConfig: Error al actualizar la configuración de usuario
|
||||
tokenConfig: Error al obtener configuración de token
|
||||
writeRequest: No se pudo completar la operación solicitada
|
||||
documentIdEmpty: El número de documento no puede estar vacío
|
||||
login:
|
||||
title: Inicio de sesión
|
||||
username: Nombre de usuario
|
||||
|
|
|
@ -19,7 +19,7 @@ const onDataSaved = () => dmsListRef.value.dmsRef.fetch();
|
|||
update-model="propertyDms"
|
||||
delete-model="propertyDms"
|
||||
download-model="dms"
|
||||
default-dms-code="propertyDms"
|
||||
default-dms-code="property"
|
||||
filter="propertyFk"
|
||||
/>
|
||||
<QDialog v-model="showImportDialog">
|
||||
|
@ -35,7 +35,7 @@ const onDataSaved = () => dmsListRef.value.dmsRef.fetch();
|
|||
data-cy="importBtn"
|
||||
>
|
||||
<QTooltip>
|
||||
{{ t('property.dms.import') }}
|
||||
{{ t('globals.import') }}
|
||||
</QTooltip>
|
||||
</QBtn>
|
||||
</QPageSticky>
|
||||
|
|
|
@ -6,8 +6,8 @@ import { useRoute } from 'vue-router';
|
|||
import VnSelect from 'src/components/common/VnSelect.vue';
|
||||
import FormModelPopup from 'components/FormModelPopup.vue';
|
||||
import FetchData from 'components/FetchData.vue';
|
||||
import useNotify from 'src/composables/useNotify.js';
|
||||
|
||||
import useNotify from 'src/composables/useNotify.js';
|
||||
import axios from 'axios';
|
||||
|
||||
const emit = defineEmits(['onDataSaved']);
|
||||
|
@ -53,7 +53,7 @@ const importDms = async () => {
|
|||
>
|
||||
<template #form-inputs>
|
||||
<VnSelect
|
||||
:label="t('property.dms.document')"
|
||||
:label="t('globals.document')"
|
||||
:options="dmsOptions"
|
||||
hide-selected
|
||||
option-label="id"
|
||||
|
|
|
@ -35,13 +35,8 @@ const onDataSaved = () => dmsListRef.value.dmsRef.fetch();
|
|||
class="fill-icon"
|
||||
>
|
||||
<QTooltip>
|
||||
{{ t('Import from existing') }}
|
||||
{{ t('globals.import') }}
|
||||
</QTooltip>
|
||||
</QBtn>
|
||||
</QPageSticky>
|
||||
</template>
|
||||
|
||||
<i18n>
|
||||
es:
|
||||
Import from existing: Importar desde existente
|
||||
</i18n>
|
||||
|
|
|
@ -22,7 +22,7 @@ const dmsId = ref(null);
|
|||
|
||||
const importDms = async () => {
|
||||
try {
|
||||
if (!dmsId.value) throw new Error(t(`The document identifier can't be empty`));
|
||||
if (!dmsId.value) throw new Error(t(`globals.errors.documentIdEmpty`));
|
||||
|
||||
const data = {
|
||||
ticketFk: route.params.id,
|
||||
|
@ -34,7 +34,7 @@ const importDms = async () => {
|
|||
dmsId.value = null;
|
||||
emit('onDataSaved');
|
||||
} catch (e) {
|
||||
throw new Error(e.message);
|
||||
throw e;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -49,14 +49,14 @@ const importDms = async () => {
|
|||
<FormModelPopup
|
||||
url-create="genera"
|
||||
model="DmsImport"
|
||||
:title="t('Select document id')"
|
||||
:title="t('globals.selectDocumentId')"
|
||||
:form-initial-data="{}"
|
||||
:save-fn="importDms"
|
||||
>
|
||||
<template #form-inputs>
|
||||
<VnRow>
|
||||
<VnSelect
|
||||
:label="t('Document')"
|
||||
:label="t('globals.document')"
|
||||
:options="dmsOptions"
|
||||
hide-selected
|
||||
option-label="id"
|
||||
|
@ -67,10 +67,3 @@ const importDms = async () => {
|
|||
</template>
|
||||
</FormModelPopup>
|
||||
</template>
|
||||
|
||||
<i18n>
|
||||
es:
|
||||
Select document id: Introduzca id de gestion documental
|
||||
Document: Documento
|
||||
The document indentifier can't be empty: El número de documento no puede estar vacío
|
||||
</i18n>
|
||||
|
|
Loading…
Reference in New Issue