From 546170e4da720790ec0ff0dab58e56ec67bf66d0 Mon Sep 17 00:00:00 2001 From: ClaraLpresta Date: Tue, 22 Oct 2024 14:17:57 +0200 Subject: [PATCH 1/2] feat: help center url changed --- _dev/src/assets/json/translations/de/ui.json | 3 ++- _dev/src/assets/json/translations/en/ui.json | 3 ++- _dev/src/assets/json/translations/es/ui.json | 3 ++- _dev/src/assets/json/translations/fr/ui.json | 3 ++- _dev/src/assets/json/translations/it/ui.json | 3 ++- _dev/src/assets/json/translations/nl/ui.json | 3 ++- _dev/src/assets/json/translations/pl/ui.json | 3 ++- _dev/src/assets/json/translations/pt/ui.json | 3 ++- _dev/src/assets/json/translations/ro/ui.json | 3 ++- _dev/src/assets/json/translations/ru/ui.json | 3 ++- _dev/src/components/help/card-faq.vue | 1 - _dev/src/views/help.vue | 7 ++++++- 12 files changed, 26 insertions(+), 12 deletions(-) diff --git a/_dev/src/assets/json/translations/de/ui.json b/_dev/src/assets/json/translations/de/ui.json index 1b15af85a..898a7af8b 100644 --- a/_dev/src/assets/json/translations/de/ui.json +++ b/_dev/src/assets/json/translations/de/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "PDF herunterladen", "couldntFindAnyAnswer": "Konnten Sie keine Antwort auf Ihre Frage finden?", "contactUs": "Kontaktieren Sie uns" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/gb/contact-us" }, "faq": { "title": "FAQ", diff --git a/_dev/src/assets/json/translations/en/ui.json b/_dev/src/assets/json/translations/en/ui.json index d441bad0f..523185390 100644 --- a/_dev/src/assets/json/translations/en/ui.json +++ b/_dev/src/assets/json/translations/en/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Download PDF", "couldntFindAnyAnswer": "Couldn't find any answer to your question?", "contactUs": "Contact us" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/gb/contact-us" }, "faq": { "title": "FAQ", diff --git a/_dev/src/assets/json/translations/es/ui.json b/_dev/src/assets/json/translations/es/ui.json index 53b94d25a..d19b6723c 100644 --- a/_dev/src/assets/json/translations/es/ui.json +++ b/_dev/src/assets/json/translations/es/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Descargar PDF", "couldntFindAnyAnswer": "¿No has encontrado ninguna respuesta a tu pregunta?", "contactUs": "Contacto" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/es/contactenos" }, "faq": { "title": "FAQ", diff --git a/_dev/src/assets/json/translations/fr/ui.json b/_dev/src/assets/json/translations/fr/ui.json index 5d10a3b22..ef24a0dc5 100644 --- a/_dev/src/assets/json/translations/fr/ui.json +++ b/_dev/src/assets/json/translations/fr/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Télécharger le PDF", "couldntFindAnyAnswer": "Vous n'avez pas trouvé de réponse à votre question ?", "contactUs": "Nous contacter" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/fr/nous-contacter" }, "faq": { "title": "FAQ", diff --git a/_dev/src/assets/json/translations/it/ui.json b/_dev/src/assets/json/translations/it/ui.json index 2b1cf1475..7ee7db713 100644 --- a/_dev/src/assets/json/translations/it/ui.json +++ b/_dev/src/assets/json/translations/it/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Scarica PDF", "couldntFindAnyAnswer": "Non hai ancora trovato le risposte che cercavi?", "contactUs": "Contattaci" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/it/contattaci" }, "faq": { "title": "FAQ", diff --git a/_dev/src/assets/json/translations/nl/ui.json b/_dev/src/assets/json/translations/nl/ui.json index dca050242..2c4863315 100644 --- a/_dev/src/assets/json/translations/nl/ui.json +++ b/_dev/src/assets/json/translations/nl/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Download de PDF", "couldntFindAnyAnswer": "Kon u geen antwoord vinden op uw vraag?", "contactUs": "Neem contact met ons op" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/gb/contact-us" }, "faq": { "title": "FAQ", diff --git a/_dev/src/assets/json/translations/pl/ui.json b/_dev/src/assets/json/translations/pl/ui.json index d0b6e98ae..de052caf8 100644 --- a/_dev/src/assets/json/translations/pl/ui.json +++ b/_dev/src/assets/json/translations/pl/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Pobierz plik PDF", "couldntFindAnyAnswer": "Nie znalazłeś/aś odpowiedzi na swoje pytanie?", "contactUs": "Skontaktuj się z nami" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/gb/contact-us" }, "faq": { "title": "FAQ", diff --git a/_dev/src/assets/json/translations/pt/ui.json b/_dev/src/assets/json/translations/pt/ui.json index 27697b5dd..0271e75cc 100644 --- a/_dev/src/assets/json/translations/pt/ui.json +++ b/_dev/src/assets/json/translations/pt/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Descarregar PDF", "couldntFindAnyAnswer": "Não encontrou resposta para a sua pergunta?", "contactUs": "Contacte-nos" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/gb/contact-us" }, "faq": { "title": "Perguntas frequentes", diff --git a/_dev/src/assets/json/translations/ro/ui.json b/_dev/src/assets/json/translations/ro/ui.json index 9398b1cd6..229f0a128 100644 --- a/_dev/src/assets/json/translations/ro/ui.json +++ b/_dev/src/assets/json/translations/ro/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Descarcă PDF", "couldntFindAnyAnswer": "Nu ai găsit niciun răspuns la întrebarea ta?", "contactUs": "Contactează-ne" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/gb/contact-us" }, "faq": { "title": "ÎNTREBĂRI FRECVENTE", diff --git a/_dev/src/assets/json/translations/ru/ui.json b/_dev/src/assets/json/translations/ru/ui.json index 3aa902a6b..a38e80271 100644 --- a/_dev/src/assets/json/translations/ru/ui.json +++ b/_dev/src/assets/json/translations/ru/ui.json @@ -369,7 +369,8 @@ "downloadPdf": "Скачать PDF", "couldntFindAnyAnswer": "Не смогли найти ответ на свой вопрос?", "contactUs": "Свяжитесь с нами" - } + }, + "helpCenterUrl": "https://prestashop-academy.com/gb/contact-us" }, "faq": { "title": "ЧАСТО ЗАДАВАЕМЫЕ ВОПРОСЫ", diff --git a/_dev/src/components/help/card-faq.vue b/_dev/src/components/help/card-faq.vue index a3ee84747..20884c177 100644 --- a/_dev/src/components/help/card-faq.vue +++ b/_dev/src/components/help/card-faq.vue @@ -21,7 +21,6 @@ - diff --git a/_dev/src/views/help.vue b/_dev/src/views/help.vue index 170cbcaa0..ec9b3e4fc 100644 --- a/_dev/src/views/help.vue +++ b/_dev/src/views/help.vue @@ -51,13 +51,18 @@ export default defineComponent({ return { faq: {}, docLink: '', - contactUsLink: 'https://help-center.prestashop.com/contact', + contactUsLink: this.$i18n.t('help.helpCenterUrl'), loading: true, }; }, created() { this.fetchFaq(); }, + mounted() { + console.log('window.psFacebookLocale', window.psFacebookLocale); + console.log('this.i18n', this.$i18n.locale); + console.log('this.$store.state.context.appContext.localeLang', this.$store.state.context.appContext.localeLang); + }, methods: { fetchFaq() { fetch(this.psFacebookRetrieveFaq) From f2f46620350301a8aa84bc67aaf3692832bb182c Mon Sep 17 00:00:00 2001 From: ClaraLpresta Date: Tue, 22 Oct 2024 15:46:27 +0200 Subject: [PATCH 2/2] fix: deleted debug console --- _dev/src/views/help.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/_dev/src/views/help.vue b/_dev/src/views/help.vue index ec9b3e4fc..79966d38a 100644 --- a/_dev/src/views/help.vue +++ b/_dev/src/views/help.vue @@ -58,11 +58,6 @@ export default defineComponent({ created() { this.fetchFaq(); }, - mounted() { - console.log('window.psFacebookLocale', window.psFacebookLocale); - console.log('this.i18n', this.$i18n.locale); - console.log('this.$store.state.context.appContext.localeLang', this.$store.state.context.appContext.localeLang); - }, methods: { fetchFaq() { fetch(this.psFacebookRetrieveFaq)