diff --git a/_dev/apps/ui/src/assets/json/prestashopUrl.json b/_dev/apps/ui/src/assets/json/prestashopUrl.json deleted file mode 100644 index 7a38c37e8..000000000 --- a/_dev/apps/ui/src/assets/json/prestashopUrl.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "contactForm": "https://help-center.prestashop.com/contact" -} \ No newline at end of file diff --git a/_dev/apps/ui/src/store/modules/app/getters.ts b/_dev/apps/ui/src/store/modules/app/getters.ts index 6eb3587f4..8e7d33af7 100644 --- a/_dev/apps/ui/src/store/modules/app/getters.ts +++ b/_dev/apps/ui/src/store/modules/app/getters.ts @@ -21,7 +21,7 @@ import GettersTypes from './getters-types'; import {State as LocalState, HelpInformations, DebugData} from './state'; import countriesSelectionOptions from '../../../assets/json/countries.json'; import symbols from '@/assets/json/symbols.json'; -import prestashopUrls from '@/assets/json/prestashopUrl.json'; +import i18n from '@/lib/i18n'; export default { [GettersTypes.GET_IS_COUNTRY_MEMBER_OF_EU](state: LocalState): boolean { @@ -44,7 +44,7 @@ export default { ): string { const {domain} = rootGetters['accounts/GET_PS_ACCOUNTS_CONTEXT'].currentShop; - return `${prestashopUrls.contactForm}?utm_source=back-office&utm_medium=psx&psx=psxmarketingwithgoogle&shop_domain=${domain}`; + return `${i18n.t('general.urlSupport') as string}?utm_source=back-office&utm_medium=psx&psx=psxmarketingwithgoogle&shop_domain=${domain}`; }, [GettersTypes.GET_DEBUG_DATA](state: LocalState): DebugData { return state.debugData; diff --git a/_dev/packages/mktg-with-google-common/translations/de/ui.json b/_dev/packages/mktg-with-google-common/translations/de/ui.json index c3a53a9e6..6942fa2ec 100644 --- a/_dev/packages/mktg-with-google-common/translations/de/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/de/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": "Keine Ergebnisse für {0} gefunden", "days": "Tage", "readMore": "Mehr erfahren", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/gb/contact-us" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/en/ui.json b/_dev/packages/mktg-with-google-common/translations/en/ui.json index 7aabe4286..5f0ca4906 100644 --- a/_dev/packages/mktg-with-google-common/translations/en/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/en/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": " No results found for {0}", "days": "Days", "readMore": "Read more", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/gb/contact-us" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/es/ui.json b/_dev/packages/mktg-with-google-common/translations/es/ui.json index d76f3f636..83f388dac 100644 --- a/_dev/packages/mktg-with-google-common/translations/es/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/es/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": " No se han encontrado resultados para \"{0}\"", "days": "Días", "readMore": "Leer más", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/es/contactenos" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/fr/ui.json b/_dev/packages/mktg-with-google-common/translations/fr/ui.json index a6a6e04b9..b34460448 100644 --- a/_dev/packages/mktg-with-google-common/translations/fr/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/fr/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": " Aucun résultat trouvé pour {0}", "days": "Jours", "readMore": "En savoir plus", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/fr/nous-contacter" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/it/ui.json b/_dev/packages/mktg-with-google-common/translations/it/ui.json index 8be759928..8d89b4004 100644 --- a/_dev/packages/mktg-with-google-common/translations/it/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/it/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": "Nessun risultato trovato per {0}", "days": "Giorni", "readMore": "Scopri di più", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/it/contattaci" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/nl/ui.json b/_dev/packages/mktg-with-google-common/translations/nl/ui.json index 05831bc64..3dc236eef 100644 --- a/_dev/packages/mktg-with-google-common/translations/nl/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/nl/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": "Geen resultaten gevonden voor {0}", "days": "Dagen", "readMore": "Meer lezen", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/gb/contact-us" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/pl/ui.json b/_dev/packages/mktg-with-google-common/translations/pl/ui.json index fbb8fee7e..e220eeb8b 100644 --- a/_dev/packages/mktg-with-google-common/translations/pl/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/pl/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": "Nie znaleziono wyników dla {0}", "days": "dni", "readMore": "Czytaj dalej", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/gb/contact-us" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/pt/ui.json b/_dev/packages/mktg-with-google-common/translations/pt/ui.json index 94f919ae5..354148445 100644 --- a/_dev/packages/mktg-with-google-common/translations/pt/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/pt/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": "Sem resultados para {0}", "days": "Dias", "readMore": "Leia mais", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/gb/contact-us" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/ro/ui.json b/_dev/packages/mktg-with-google-common/translations/ro/ui.json index 0d5d3a2c8..b89f3a6dc 100644 --- a/_dev/packages/mktg-with-google-common/translations/ro/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/ro/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": " Nu s-au găsit rezultate pentru {0}", "days": "Zile", "readMore": "Citește mai mult", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/gb/contact-us" }, "landingPage": { "header": { diff --git a/_dev/packages/mktg-with-google-common/translations/ru/ui.json b/_dev/packages/mktg-with-google-common/translations/ru/ui.json index c2a4ced18..230241660 100644 --- a/_dev/packages/mktg-with-google-common/translations/ru/ui.json +++ b/_dev/packages/mktg-with-google-common/translations/ru/ui.json @@ -48,7 +48,8 @@ "noResultsFoundForX": "Результаты по запросу «{0}» не найдены", "days": "дн.", "readMore": "Подробнее", - "countryWithCurrencyFormat": "{country} ({currency})" + "countryWithCurrencyFormat": "{country} ({currency})", + "urlSupport": "https://prestashop-academy.com/gb/contact-us" }, "landingPage": { "header": {