fix(i18n): include period in translatable string (#44474)

* fix: include period in translatable string

* chore: update snapshot

* fix: combine 2 strings into 1

* fix: add placeholder

* fix: update snapshot

Co-authored-by: Mrugesh Mohapatra <hi@mrugesh.dev>
This commit is contained in:
sidemt
2021-12-14 23:42:57 +09:00
committed by GitHub
parent 6819cf5e1b
commit 34f19bd698
3 changed files with 11 additions and 11 deletions

View File

@ -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)", "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.", "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.", "donation-initiatives": "Donations to freeCodeCamp go toward our education initiatives, and help pay for servers, services, and staff.",
"donate-text": "You can", "donate-text": "You can <1>make a tax-deductible donation here</1>.",
"donate-link": "make a tax-deductible donation here",
"trending-guides": "Trending Guides", "trending-guides": "Trending Guides",
"our-nonprofit": "Our Nonprofit", "our-nonprofit": "Our Nonprofit",
"links": { "links": {

View File

@ -25,13 +25,12 @@ exports[`<Footer /> matches snapshot 1`] = `
<p <p
className="footer-donation" className="footer-donation"
> >
footer.donate-text You can
<a <a
className="inline" className="inline"
href="/donate" href="/donate"
> >
footer.donate-link make a tax-deductible donation here
</a> </a>
. .
</p> </p>

View File

@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import { useTranslation } from 'react-i18next'; import { Trans, useTranslation } from 'react-i18next';
import Link from '../helpers/link'; import Link from '../helpers/link';
import './footer.css'; import './footer.css';
@ -15,11 +15,13 @@ function Footer(): JSX.Element {
<p>{t('footer.mission-statement')}</p> <p>{t('footer.mission-statement')}</p>
<p>{t('footer.donation-initiatives')}</p> <p>{t('footer.donation-initiatives')}</p>
<p className='footer-donation'> <p className='footer-donation'>
{t('footer.donate-text')}{' '} <Trans i18nKey='footer.donate-text'>
<Link className='inline' to='/donate'> You can
{t('footer.donate-link')} <Link className='inline' to='/donate'>
</Link> make a tax-deductible donation here
. </Link>
.
</Trans>
</p> </p>
</div> </div>
<div className='trending-guides'> <div className='trending-guides'>