From f4eb14f48704dd5028d1ffdb1023da5c5e29c854 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 24 Apr 2024 14:22:14 +0200 Subject: [PATCH] feat: i18n Clone --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Item/Card/ItemDescriptor.vue | 3 +-- src/pages/Item/Card/ItemDescriptorImage.vue | 1 - src/pages/Item/ItemList.vue | 3 +-- src/pages/Route/RouteList.vue | 3 +-- src/pages/Route/RouteRoadmap.vue | 2 +- src/pages/Route/RouteTickets.vue | 2 +- 8 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 09db311c2..69e37da0c 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -28,6 +28,7 @@ globals: reset: Reset close: Close cancel: Cancel + clone: Clone confirm: Confirm assign: Assign back: Back diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f58260519..d3a0fb820 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -28,6 +28,7 @@ globals: reset: Restaurar close: Cerrar cancel: Cancelar + clone: Clonar confirm: Confirmar assign: Asignar back: Volver diff --git a/src/pages/Item/Card/ItemDescriptor.vue b/src/pages/Item/Card/ItemDescriptor.vue index 59ac9adf9..62b54664d 100644 --- a/src/pages/Item/Card/ItemDescriptor.vue +++ b/src/pages/Item/Card/ItemDescriptor.vue @@ -162,7 +162,7 @@ const openCloneDialog = async () => { - {{ t('Clone') }} + {{ t('globals.clone') }} @@ -213,7 +213,6 @@ const openCloneDialog = async () => { es: Regularize stock: Regularizar stock - Clone: Clonar All it's properties will be copied: Todas sus propiedades serán copiadas Do you want to clone this item?: ¿Desea clonar este artículo? diff --git a/src/pages/Item/Card/ItemDescriptorImage.vue b/src/pages/Item/Card/ItemDescriptorImage.vue index 827e9096a..f16a57548 100644 --- a/src/pages/Item/Card/ItemDescriptorImage.vue +++ b/src/pages/Item/Card/ItemDescriptorImage.vue @@ -134,7 +134,6 @@ onMounted(async () => { es: Regularize stock: Regularizar stock - Clone: Clonar All it's properties will be copied: Todas sus propiedades serán copiadas Do you want to clone this item?: ¿Desea clonar este artículo? warehouseText: Calculated on the warehouse of { warehouseName } diff --git a/src/pages/Item/ItemList.vue b/src/pages/Item/ItemList.vue index 3e399e29f..25dda8796 100644 --- a/src/pages/Item/ItemList.vue +++ b/src/pages/Item/ItemList.vue @@ -538,7 +538,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); size="sm" > - {{ t('Clone') }} + {{ t('globals.clone') }} diff --git a/src/pages/Route/RouteList.vue b/src/pages/Route/RouteList.vue index 773b4f773..83db8199c 100644 --- a/src/pages/Route/RouteList.vue +++ b/src/pages/Route/RouteList.vue @@ -213,7 +213,7 @@ const openTicketsDialog = (id) => { - {{ t('Clone') }} + {{ t('globals.clone') }} @@ -510,7 +510,6 @@ es: Select the starting date: Seleccione la fecha de inicio Stating date: Fecha de inicio Cancel: Cancelar - Clone: Clonar Mark as served: Marcar como servidas Download selected routes as PDF: Descargar rutas seleccionadas como PDF Add ticket: Añadir tickets diff --git a/src/pages/Route/RouteRoadmap.vue b/src/pages/Route/RouteRoadmap.vue index 3fffb3829..7a7dbd948 100644 --- a/src/pages/Route/RouteRoadmap.vue +++ b/src/pages/Route/RouteRoadmap.vue @@ -176,7 +176,7 @@ function navigateToRoadmapSummary(event, row) { - {{ t('Clone') }} + {{ t('globals.clone') }} diff --git a/src/pages/Route/RouteTickets.vue b/src/pages/Route/RouteTickets.vue index c1ca5507e..44818323e 100644 --- a/src/pages/Route/RouteTickets.vue +++ b/src/pages/Route/RouteTickets.vue @@ -251,7 +251,7 @@ const openSmsDialog = async () => { - {{ t('Clone') }} + {{ t('globals.clone') }}