From 3d7b84e2c05c3bdbe33a97585d523c843e95f64b Mon Sep 17 00:00:00 2001 From: Nikolay Yankov Date: Sat, 19 Oct 2024 22:08:25 +0300 Subject: [PATCH] Fix route locale for Privacy Policy in Donation Component --- src/components/common/form/AcceptPrivacyPolicyField.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/common/form/AcceptPrivacyPolicyField.tsx b/src/components/common/form/AcceptPrivacyPolicyField.tsx index 37ecce0b7..99a4629b3 100644 --- a/src/components/common/form/AcceptPrivacyPolicyField.tsx +++ b/src/components/common/form/AcceptPrivacyPolicyField.tsx @@ -1,5 +1,6 @@ import { useTranslation } from 'next-i18next' import { Typography } from '@mui/material' +import { useRouter } from 'next/router' import { routes } from 'common/routes' import ExternalLink from 'components/common/ExternalLink' @@ -18,6 +19,8 @@ export default function AcceptPrivacyPolicyField({ ...rest }: AcceptGDPRFieldProps) { const { t } = useTranslation() + const { locale } = useRouter() + return ( {t('validation:informed-agree-with')}{' '} - {t('validation:gdpr')} + + {t('validation:gdpr')} + } {...rest}