mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-18 10:01:02 -05:00
fix(i18n,client): add note for deployment issues (#62093)
This commit is contained in:
committed by
GitHub
parent
f356d6b442
commit
ec93db58fe
@@ -4,7 +4,7 @@ import Helmet from 'react-helmet';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { connect } from 'react-redux';
|
||||
import { createSelector } from 'reselect';
|
||||
import { Container, Col, Row, Spacer } from '@freecodecamp/ui';
|
||||
import { Container, Col, Row, Spacer, Callout } from '@freecodecamp/ui';
|
||||
|
||||
import Intro from '../components/Intro';
|
||||
import Map from '../components/Map';
|
||||
@@ -16,6 +16,8 @@ import {
|
||||
} from '../redux/selectors';
|
||||
|
||||
import callGA from '../analytics/call-ga';
|
||||
import { clientLocale } from '../../config/env.json';
|
||||
import createLanguageRedirect from '../components/create-language-redirect';
|
||||
|
||||
interface FetchState {
|
||||
pending: boolean;
|
||||
@@ -99,6 +101,33 @@ function LearnPage({
|
||||
onLearnDonationAlertClick={onLearnDonationAlertClick}
|
||||
isDonating={isDonating}
|
||||
/>
|
||||
{clientLocale === 'english' ? null : (
|
||||
<>
|
||||
<Spacer size='m' />
|
||||
<Callout variant='info'>
|
||||
<p className='text-center'>
|
||||
<strong style={{ color: 'var(--blue-dark)' }}>
|
||||
Warning: The localized content in this language is not
|
||||
being updated.
|
||||
</strong>
|
||||
</p>
|
||||
<p>
|
||||
Your previous progress is being saved, but you should{' '}
|
||||
<a
|
||||
href={createLanguageRedirect({
|
||||
clientLocale,
|
||||
lang: 'english'
|
||||
})}
|
||||
>
|
||||
visit the English version
|
||||
</a>{' '}
|
||||
for up to date content. We recognize this is not ideal and
|
||||
are working to fix it.
|
||||
</p>
|
||||
<p>We appreciate your patience.</p>
|
||||
</Callout>
|
||||
</>
|
||||
)}
|
||||
<Map />
|
||||
<Spacer size='l' />
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user