diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index 373bc45cf3..3a0bbc5ff3 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -216,8 +216,7 @@ "tax-exempt-status": "freeCodeCamp is a donor-supported tax-exempt 501(c)(3) nonprofit organization (United States Federal Tax Identification Number: 82-0779546)", "mission-statement": "Our mission: to help people learn to code for free. We accomplish this by creating thousands of videos, articles, and interactive coding lessons - all freely available to the public. We also have thousands of freeCodeCamp study groups around the world.", "donation-initiatives": "Donations to freeCodeCamp go toward our education initiatives, and help pay for servers, services, and staff.", - "donate-text": "You can", - "donate-link": "make a tax-deductible donation here", + "donate-text": "You can <1>make a tax-deductible donation here1>.", "trending-guides": "Trending Guides", "our-nonprofit": "Our Nonprofit", "links": { diff --git a/client/src/components/Footer/__snapshots__/footer.test.tsx.snap b/client/src/components/Footer/__snapshots__/footer.test.tsx.snap index affa2e18d4..526ecff419 100644 --- a/client/src/components/Footer/__snapshots__/footer.test.tsx.snap +++ b/client/src/components/Footer/__snapshots__/footer.test.tsx.snap @@ -25,13 +25,12 @@ exports[` matches snapshot 1`] = `
- footer.donate-text - + You can - footer.donate-link + make a tax-deductible donation here .
diff --git a/client/src/components/Footer/index.tsx b/client/src/components/Footer/index.tsx index 7f7e8cc7e6..fed253ccbd 100644 --- a/client/src/components/Footer/index.tsx +++ b/client/src/components/Footer/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { useTranslation } from 'react-i18next'; +import { Trans, useTranslation } from 'react-i18next'; import Link from '../helpers/link'; import './footer.css'; @@ -15,11 +15,13 @@ function Footer(): JSX.Element {{t('footer.mission-statement')}
{t('footer.donation-initiatives')}
- {t('footer.donate-text')}{' '}
-
- {t('footer.donate-link')}
-
- .
+