Skip to content

Commit

Permalink
feat: lang added to privacy policy link
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraLpresta committed Jan 17, 2025
1 parent e51c218 commit 14eb99d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion _dev/src/components/help/card-faq.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<b-link
variant="link"
target="_blank"
href="https://prestashop.com/privacy-policy/"
:href="privacyPolicyLink()"
>
{{ $t("help.help.privacyPolicy") }}
</b-link>
Expand Down Expand Up @@ -162,6 +162,11 @@ export default defineComponent({
required: true,
},
},
data() {
return {
lang: this.$i18n.locale,
};
},
computed: {
supportUrl(): string {
return `?utm_source=back-office&utm_medium=psx&psx=ps_facebook&shop_domain=${window.contextPsAccounts.currentShop.domain}`;
Expand All @@ -184,6 +189,16 @@ export default defineComponent({
module: 'ps_facebook',
});
},
privacyPolicyLink() {
const urls = {
fr: 'https://prestashop.fr/politique-confidentialite/',
en: 'https://prestashop.com/privacy-policy/',
};

const currentLocale = this.$i18n.locale;

return urls[currentLocale] || urls.en;
},
},
});
</script>
Expand Down

0 comments on commit 14eb99d

Please sign in to comment.