From dbe6e86ba76e0e5c3a7f8950676459b57da54d39 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Sat, 13 Jul 2024 00:06:33 +0200 Subject: [PATCH] ticketComponent i18n --- src/pages/Ticket/Card/TicketComponents.vue | 38 +++++++++++----------- src/pages/Ticket/locale/en.yml | 2 +- src/pages/Ticket/locale/es.yml | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/pages/Ticket/Card/TicketComponents.vue b/src/pages/Ticket/Card/TicketComponents.vue index 19d25d259..3954b5a62 100644 --- a/src/pages/Ticket/Card/TicketComponents.vue +++ b/src/pages/Ticket/Card/TicketComponents.vue @@ -71,39 +71,39 @@ const salesFilter = computed(() => ({ const columns = computed(() => [ { - label: t('components.item'), + label: t('ticketComponents.item'), name: 'item', align: 'left', }, { - label: t('components.description'), + label: t('ticketComponents.description'), name: 'description', align: 'left', }, { - label: t('components.quantity'), + label: t('ticketComponents.quantity'), name: 'quantity', field: 'quantity', align: 'left', format: (val) => dashIfEmpty(val), }, { - label: t('components.serie'), + label: t('ticketComponents.serie'), name: 'serie', align: 'left', }, { - label: t('components.components'), + label: t('ticketComponents.components'), name: 'components', align: 'left', }, { - label: t('components.import'), + label: t('ticketComponents.import'), name: 'import', align: 'left', }, { - label: t('components.total'), + label: t('ticketComponents.total'), name: 'total', align: 'left', }, @@ -184,18 +184,18 @@ onUnmounted(() => (stateStore.rightDrawer = false)); > - {{ t('components.total') }} + {{ t('ticketComponents.total') }} {{ t('components.baseToCommission') }}: + >{{ t('ticketComponents.baseToCommission') }}: {{ toCurrency(getBase) }} {{ t('components.totalWithoutVat') }}: + >{{ t('ticketComponents.totalWithoutVat') }}: {{ toCurrency(getTotal) }} @@ -208,7 +208,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); > - {{ t('components.components') }} + {{ t('ticketComponents.components') }} (stateStore.rightDrawer = false)); > - {{ t('components.zoneBreakdown') }} + {{ t('ticketComponents.zoneBreakdown') }} - {{ t('components.price') }}: + {{ t('ticketComponents.price') }}: {{ toCurrency(ticketData?.zonePrice, 'EUR', 2) }} - {{ t('components.bonus') }}: + {{ t('ticketComponents.bonus') }}: {{ toCurrency(ticketData?.zoneBonus, 'EUR', 2) }} - {{ t('components.zone') }}: + {{ t('ticketComponents.zone') }}: {{ dashIfEmpty(ticketData?.zone?.name) }} @@ -258,13 +258,13 @@ onUnmounted(() => (stateStore.rightDrawer = false)); - {{ t('components.volume') }}: + {{ t('ticketComponents.volume') }}: {{ ticketVolume }} - {{ t('components.packages') }}: + {{ t('ticketComponents.packages') }}: {{ dashIfEmpty(ticketData?.packages) }} @@ -277,12 +277,12 @@ onUnmounted(() => (stateStore.rightDrawer = false)); > - {{ t('components.theoricalCost') }} + {{ t('ticketComponents.theoricalCost') }} - {{ t('components.totalPrice') }}: + {{ t('ticketComponents.totalPrice') }}: {{ toCurrency(theoricalCost, 'EUR', 2) }} diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index ede5480ff..e3f2f06da 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -178,7 +178,7 @@ service: addService: Add service quantityInfo: To create services with negative amounts mark the service on the source ticket and press the pay button. createRefundSuccess: 'The following refund ticket have been created: { ticketId }' -components: +ticketComponents: item: Item description: Description quantity: Quantity diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 1b97cd66f..a46bbd5ec 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -164,7 +164,7 @@ ticketSale: shipped: F. Envío agency: Agencia address: Consignatario -components: +ticketComponents: item: Artículo description: Descripción quantity: Cantidad