+
{{ t('confirmData') }}
@@ -431,14 +448,14 @@ onMounted(async () => {
flat
color="primary"
@click="onPreviousStep(stepIndex)"
- label="Back"
+ :label="step.backButtonLabel || t('back')"
class="q-ml-sm"
:class="{ invisible: currentStep === 'method' }"
/>
@@ -446,7 +463,14 @@ onMounted(async () => {
-
+
en-US:
@@ -468,7 +492,8 @@ en-US:
pleaseSelectAWarehouse: Please select a store
warehouse: Warehouse
pickup: Pickup
- rememberReconfiguringImpact: Remember that if you reconfigure your order prices or quantities of your items may change
+ addressStepQuestion: Where do you want to receive the order?
+ addressStepQuestionPickup: To which address do you want to associate the order? (Optional)
es-ES:
receiveOrPickOrder: ¿Quieres recibir o recoger el pedido?
receiveOrder: Recibir en mi tienda
@@ -488,7 +513,8 @@ es-ES:
pleaseSelectAWarehouse: Por favor elige un almacén
warehouse: Almacén
pickup: Recogida
- rememberReconfiguringImpact: Recuerda que si vuelves a configurar el pedido los precios o cantidades de tus artículos podrían cambiar
+ addressStepQuestion: ¿Dónde quieres recibir el pedido?
+ addressStepQuestionPickup: ¿A qué dirección quieres asociar el pedido? (Opcional)
ca-ES:
receiveOrPickOrder: Vols rebre o recollir la comanda?
receiveOrder: Rebre en mi tenda
@@ -508,7 +534,8 @@ ca-ES:
pleaseSelectAWarehouse: Si us plau tria un magatzem
warehouse: Magatzem
pickup: Recollida
- rememberReconfiguringImpact: Recorda que si tornes a configurar la comanda els preus o quantitats dels teus articles podrien canviar
+ addressStepQuestion: On vols rebre la comanda?
+ addressStepQuestionPickup: A què direcció vols associar la comanda? (Opcional)
fr-FR:
receiveOrPickOrder: Voulez-vous recevoir ou récuperer l'ordre?
receiveOrder: Livraison à la boutique
@@ -528,12 +555,14 @@ fr-FR:
pleaseSelectAWarehouse: Veuillez choisir un entrepôt
warehouse: Entrepôt
pickup: Retrait
- rememberReconfiguringImpact: Rappelez-vous que si jamais vous commandez des prix fixés ou les quantités de vos articles pourraient changer
+ addressStepQuestion: Adresse livraison?
+ addressStepQuestionPickup: À quelle adresse voulez-vous associer la commande? (Optionnel)
pt-PT:
receiveOrPickOrder: Queres receber ou levantar a encomenda?
receiveOrder: Receber na minha loja
pickupInStore: Levantar no armazém
orderDateDelivery: Como queres receber a encomenda?
+ howDoYouWantToReceive: Como queres receber a encomenda?
confirmData: Confirme os dados
arrival: Chegada
orderUpdated: Encomenda actualizada
@@ -547,5 +576,6 @@ pt-PT:
pleaseSelectAWarehouse: Por favor, escolha um armazém
warehouse: Armazém
pickup: Recolhida
- rememberReconfiguringImpact: Lembre-se que si voltas a configurar a encomenda os preços ou quantidades de ítens poderíam variar
+ addressStepQuestion: Onde queres receber a encomenda?
+ addressStepQuestionPickup: Para qual endereço deseja associar o pedido? (Opcional)
diff --git a/src/stores/app.js b/src/stores/app.js
index 51cdd41d..56a2ce2f 100644
--- a/src/stores/app.js
+++ b/src/stores/app.js
@@ -1,6 +1,7 @@
import { defineStore } from 'pinia';
import { jApi } from 'boot/axios';
import useNotify from 'src/composables/useNotify.js';
+import { i18n } from 'src/boot/i18n';
const { notify } = useNotify();
@@ -13,7 +14,13 @@ export const useAppStore = defineStore('hedera', {
rightDrawerOpen: false,
isHeaderMounted: false,
menuEssentialLinks: [],
- basketOrderId: null
+ basketOrderId: null,
+ localeDates: {
+ days: [],
+ months: [],
+ daysShort: [],
+ monthsShort: []
+ }
}),
actions: {
@@ -48,8 +55,19 @@ export const useAppStore = defineStore('hedera', {
this.$patch({ imageUrl });
},
+ getLocaleDates() {
+ const { messages, locale } = i18n.global;
+ this.localeDates = {
+ days: messages.value[locale.value].date.days,
+ months: messages.value[locale.value].date.months,
+ daysShort: messages.value[locale.value].date.daysShort,
+ monthsShort: messages.value[locale.value].date.monthsShort
+ };
+ },
+
async init() {
this.getBasketOrderId();
+ this.getLocaleDates();
},
getBasketOrderId() {