Skip to content

Commit

Permalink
remove crowdin help center url (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraLpresta authored Oct 28, 2024
1 parent edc5161 commit 56122bf
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/de/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"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",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/en/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"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",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/es/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"downloadPdf": "Descargar PDF",
"couldntFindAnyAnswer": "¿No has encontrado ninguna respuesta a tu pregunta?",
"contactUs": "Contacto"
},
"helpCenterUrl": "https://prestashop-academy.com/es/contactenos"
}
},
"faq": {
"title": "FAQ",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/fr/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"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",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/it/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"downloadPdf": "Scarica PDF",
"couldntFindAnyAnswer": "Non hai ancora trovato le risposte che cercavi?",
"contactUs": "Contattaci"
},
"helpCenterUrl": "https://prestashop-academy.com/it/contattaci"
}
},
"faq": {
"title": "FAQ",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/nl/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"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",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/pl/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"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",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/pt/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"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",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/ro/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"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",
Expand Down
3 changes: 1 addition & 2 deletions _dev/src/assets/json/translations/ru/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@
"downloadPdf": "Скачать PDF",
"couldntFindAnyAnswer": "Не смогли найти ответ на свой вопрос?",
"contactUs": "Свяжитесь с нами"
},
"helpCenterUrl": "https://prestashop-academy.com/gb/contact-us"
}
},
"faq": {
"title": "ЧАСТО ЗАДАВАЕМЫЕ ВОПРОСЫ",
Expand Down
14 changes: 12 additions & 2 deletions _dev/src/views/help.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
>
<card-faq
:faq="faq"
:contact-us-link="contactUsLink"
:contact-us-link="supportLink()"
:doc-link="docLink"
:loading="loading"
class="m-3"
Expand Down Expand Up @@ -51,14 +51,24 @@ export default defineComponent({
return {
faq: {},
docLink: '',
contactUsLink: this.$i18n.t('help.helpCenterUrl'),
loading: true,
};
},
created() {
this.fetchFaq();
},
methods: {
supportLink() {
const urls = {
fr: 'https://prestashop-academy.com/fr/nous-contacter',
it: 'https://prestashop-academy.com/it/contattaci',
es: 'https://prestashop-academy.com/es/contactenos',
};
const currentLocale = this.$i18n.locale;
return urls[currentLocale] || 'https://prestashop-academy.com/gb/contact-us';
},
fetchFaq() {
fetch(this.psFacebookRetrieveFaq)
.then((res) => {
Expand Down

0 comments on commit 56122bf

Please sign in to comment.