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