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:
@ -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": {
|
||||||
|
@ -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>
|
||||||
|
@ -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'>
|
||||||
|
You can
|
||||||
<Link className='inline' to='/donate'>
|
<Link className='inline' to='/donate'>
|
||||||
{t('footer.donate-link')}
|
make a tax-deductible donation here
|
||||||
</Link>
|
</Link>
|
||||||
.
|
.
|
||||||
|
</Trans>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='trending-guides'>
|
<div className='trending-guides'>
|
||||||
|
Reference in New Issue
Block a user