From 4bd8d6d106d9761c00fe09c60dc2e9f297c40039 Mon Sep 17 00:00:00 2001 From: Ashley Wright Date: Fri, 9 Jan 2026 16:53:36 -0700 Subject: [PATCH] fix: add link to french privacy policy --- src/views/disclosure/PrivacyPolicy.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/disclosure/PrivacyPolicy.tsx b/src/views/disclosure/PrivacyPolicy.tsx index 98bcc9accd..1cad1153b8 100644 --- a/src/views/disclosure/PrivacyPolicy.tsx +++ b/src/views/disclosure/PrivacyPolicy.tsx @@ -8,8 +8,10 @@ import useAnalyticsPath from 'src/hooks/useAnalyticsPath' import { PageviewInfo } from 'src/const/Analytics' import { goToUrlLink } from 'src/utilities/global' +import { getLocale } from 'src/utilities/Intl' const PRIVACY_POLICY_URL = 'https://www.mx.com/privacy/' +const PRIVACY_POLICY_URL_FR = 'https://www.mx.com/fr/privacy/' interface PrivacyPolicyProps { onCancel?: () => void @@ -22,7 +24,9 @@ export const PrivacyPolicy = ({ onCancel }: PrivacyPolicyProps = {}) => { const getNextDelay = getDelay() useEffect(() => { - setIsLeavingUrl(PRIVACY_POLICY_URL) + const locale = getLocale() + const privacyUrl = locale === 'fr-ca' ? PRIVACY_POLICY_URL_FR : PRIVACY_POLICY_URL + setIsLeavingUrl(privacyUrl) }, []) if (isLeavingUrl) {