fix(i18n): remove 'help translate' from English (#41066)
This commit is contained in:
committed by
GitHub
parent
1e0c09faff
commit
e28ad04cb5
@ -53,6 +53,7 @@ export const ChallengeNode = PropTypes.shape({
|
|||||||
tail: PropTypes.arrayOf(PropTypes.string),
|
tail: PropTypes.arrayOf(PropTypes.string),
|
||||||
time: PropTypes.string,
|
time: PropTypes.string,
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
|
translationPending: PropTypes.bool,
|
||||||
videoUrl: PropTypes.string
|
videoUrl: PropTypes.string
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -209,7 +209,8 @@ class ShowClassic extends Component {
|
|||||||
fields: { blockName },
|
fields: { blockName },
|
||||||
description,
|
description,
|
||||||
instructions,
|
instructions,
|
||||||
superBlock
|
superBlock,
|
||||||
|
translationPending
|
||||||
} = this.getChallenge();
|
} = this.getChallenge();
|
||||||
|
|
||||||
const { forumTopicId, title } = this.getChallenge();
|
const { forumTopicId, title } = this.getChallenge();
|
||||||
@ -224,6 +225,7 @@ class ShowClassic extends Component {
|
|||||||
showToolPanel={showToolPanel}
|
showToolPanel={showToolPanel}
|
||||||
superBlock={superBlock}
|
superBlock={superBlock}
|
||||||
title={title}
|
title={title}
|
||||||
|
translationPending={translationPending}
|
||||||
videoUrl={this.getVideoUrl()}
|
videoUrl={this.getVideoUrl()}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@ -362,6 +364,7 @@ export const query = graphql`
|
|||||||
helpCategory
|
helpCategory
|
||||||
videoUrl
|
videoUrl
|
||||||
superBlock
|
superBlock
|
||||||
|
translationPending
|
||||||
forumTopicId
|
forumTopicId
|
||||||
fields {
|
fields {
|
||||||
slug
|
slug
|
||||||
|
@ -11,18 +11,27 @@ const propTypes = {
|
|||||||
block: PropTypes.string,
|
block: PropTypes.string,
|
||||||
children: PropTypes.string,
|
children: PropTypes.string,
|
||||||
isCompleted: PropTypes.bool,
|
isCompleted: PropTypes.bool,
|
||||||
superBlock: PropTypes.string
|
superBlock: PropTypes.string,
|
||||||
|
translationPending: PropTypes.bool.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
function ChallengeTitle({ block, children, isCompleted, superBlock }) {
|
function ChallengeTitle({
|
||||||
|
block,
|
||||||
|
children,
|
||||||
|
isCompleted,
|
||||||
|
superBlock,
|
||||||
|
translationPending
|
||||||
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className='challenge-title-wrap'>
|
<div className='challenge-title-wrap'>
|
||||||
<Link
|
{translationPending && (
|
||||||
className='title-translation-cta'
|
<Link
|
||||||
to='https://contribute.freecodecamp.org/#/how-to-translate-files'
|
className='title-translation-cta'
|
||||||
>
|
to='https://contribute.freecodecamp.org/#/how-to-translate-files'
|
||||||
{i18next.t('misc.translation-pending')}
|
>
|
||||||
</Link>
|
{i18next.t('misc.translation-pending')}
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
<div className='challenge-title-breadcrumbs'>
|
<div className='challenge-title-breadcrumbs'>
|
||||||
<Link
|
<Link
|
||||||
className='breadcrumb-left'
|
className='breadcrumb-left'
|
||||||
|
@ -32,6 +32,7 @@ const propTypes = {
|
|||||||
superBlock: PropTypes.string,
|
superBlock: PropTypes.string,
|
||||||
tests: PropTypes.arrayOf(PropTypes.object),
|
tests: PropTypes.arrayOf(PropTypes.object),
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
|
translationPending: PropTypes.bool.isRequired,
|
||||||
videoUrl: PropTypes.string
|
videoUrl: PropTypes.string
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -75,6 +76,7 @@ export class SidePanel extends Component {
|
|||||||
section,
|
section,
|
||||||
showToolPanel,
|
showToolPanel,
|
||||||
superBlock,
|
superBlock,
|
||||||
|
translationPending,
|
||||||
videoUrl
|
videoUrl
|
||||||
} = this.props;
|
} = this.props;
|
||||||
return (
|
return (
|
||||||
@ -84,6 +86,7 @@ export class SidePanel extends Component {
|
|||||||
block={block}
|
block={block}
|
||||||
isCompleted={isChallengeCompleted}
|
isCompleted={isChallengeCompleted}
|
||||||
superBlock={superBlock}
|
superBlock={superBlock}
|
||||||
|
translationPending={translationPending}
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
</ChallengeTitle>
|
</ChallengeTitle>
|
||||||
|
@ -4,12 +4,6 @@ exports[`<ChallengeTitle/> renders correctly 1`] = `
|
|||||||
<div
|
<div
|
||||||
className="challenge-title-wrap"
|
className="challenge-title-wrap"
|
||||||
>
|
>
|
||||||
<a
|
|
||||||
className="title-translation-cta"
|
|
||||||
href="https://contribute.freecodecamp.org/#/how-to-translate-files"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
/>
|
|
||||||
<div
|
<div
|
||||||
className="challenge-title-breadcrumbs"
|
className="challenge-title-breadcrumbs"
|
||||||
>
|
>
|
||||||
|
@ -167,6 +167,7 @@ export class BackEnd extends Component {
|
|||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
instructions,
|
instructions,
|
||||||
|
translationPending,
|
||||||
superBlock
|
superBlock
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -200,6 +201,7 @@ export class BackEnd extends Component {
|
|||||||
block={blockName}
|
block={blockName}
|
||||||
isCompleted={isChallengeCompleted}
|
isCompleted={isChallengeCompleted}
|
||||||
superBlock={superBlock}
|
superBlock={superBlock}
|
||||||
|
translationPending={translationPending}
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
</ChallengeTitle>
|
</ChallengeTitle>
|
||||||
@ -258,6 +260,7 @@ export const query = graphql`
|
|||||||
challengeType
|
challengeType
|
||||||
helpCategory
|
helpCategory
|
||||||
superBlock
|
superBlock
|
||||||
|
translationPending
|
||||||
fields {
|
fields {
|
||||||
blockName
|
blockName
|
||||||
slug
|
slug
|
||||||
|
@ -126,7 +126,8 @@ export class Project extends Component {
|
|||||||
forumTopicId,
|
forumTopicId,
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
superBlock
|
superBlock,
|
||||||
|
translationPending
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isChallengeCompleted,
|
isChallengeCompleted,
|
||||||
@ -157,6 +158,7 @@ export class Project extends Component {
|
|||||||
block={blockName}
|
block={blockName}
|
||||||
isCompleted={isChallengeCompleted}
|
isCompleted={isChallengeCompleted}
|
||||||
superBlock={superBlock}
|
superBlock={superBlock}
|
||||||
|
translationPending={translationPending}
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
</ChallengeTitle>
|
</ChallengeTitle>
|
||||||
@ -200,6 +202,7 @@ export const query = graphql`
|
|||||||
challengeType
|
challengeType
|
||||||
helpCategory
|
helpCategory
|
||||||
superBlock
|
superBlock
|
||||||
|
translationPending
|
||||||
fields {
|
fields {
|
||||||
blockName
|
blockName
|
||||||
slug
|
slug
|
||||||
|
@ -63,6 +63,7 @@ const propTypes = {
|
|||||||
challengeMeta: PropTypes.object
|
challengeMeta: PropTypes.object
|
||||||
}),
|
}),
|
||||||
t: PropTypes.func.isRequired,
|
t: PropTypes.func.isRequired,
|
||||||
|
translationPending: PropTypes.bool.isRequired,
|
||||||
updateChallengeMeta: PropTypes.func.isRequired,
|
updateChallengeMeta: PropTypes.func.isRequired,
|
||||||
updateSolutionFormValues: PropTypes.func.isRequired
|
updateSolutionFormValues: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
@ -161,6 +162,7 @@ export class Project extends Component {
|
|||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
superBlock,
|
superBlock,
|
||||||
|
translationPending,
|
||||||
videoId,
|
videoId,
|
||||||
question: { text, answers, solution }
|
question: { text, answers, solution }
|
||||||
}
|
}
|
||||||
@ -194,6 +196,7 @@ export class Project extends Component {
|
|||||||
block={blockName}
|
block={blockName}
|
||||||
isCompleted={isChallengeCompleted}
|
isCompleted={isChallengeCompleted}
|
||||||
superBlock={superBlock}
|
superBlock={superBlock}
|
||||||
|
translationPending={translationPending}
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
</ChallengeTitle>
|
</ChallengeTitle>
|
||||||
|
Reference in New Issue
Block a user