fix(i18n): Expand/Collapse Courses Button text (#44528)

* fix(i18n): Expand/Collapse Courses Button text

* Update client/i18n/locales/english/intro.json

Co-authored-by: Ilenia <nethleen@gmail.com>

* Update client/i18n/locales/english/intro.json

Co-authored-by: Ilenia <nethleen@gmail.com>

Co-authored-by: Ilenia <nethleen@gmail.com>
This commit is contained in:
Prashant
2021-12-20 22:54:09 +05:30
committed by GitHub
parent 63a53ee382
commit 304773d62b
3 changed files with 6 additions and 14 deletions

View File

@ -560,7 +560,7 @@
"browse-other": "Browse our other free certifications\n(we recommend doing these in order)",
"courses": "Courses",
"steps": "Steps",
"expand": "Expand",
"collapse": "Collapse"
"expand": "Expand courses",
"collapse": "Collapse courses"
}
}

View File

@ -136,12 +136,10 @@ export class Block extends Component<BlockProps> {
const blockIntroArr = blockIntroObj ? blockIntroObj.intro : [];
const {
expand: expandText,
collapse: collapseText,
courses: coursesText
collapse: collapseText
}: {
expand: string;
collapse: string;
courses: string;
} = t('intro:misc-text');
return isProjectBlock ? (
@ -203,9 +201,7 @@ export class Block extends Component<BlockProps> {
>
<Caret />
<h4 className='course-title'>
{`${
isExpanded ? collapseText : expandText
} ${coursesText.toLowerCase()}`}
{`${isExpanded ? collapseText : expandText}`}
</h4>
<div className='map-title-completed course-title'>
{this.renderCheckMark(

View File

@ -37,12 +37,10 @@ const CertificationCard = ({
const {
expand: expandText,
collapse: collapseText,
courses: coursesText
collapse: collapseText
}: {
expand: string;
collapse: string;
courses: string;
} = t('intro:misc-text');
return (
<ScrollableAnchor id='claim-cert-block'>
@ -65,9 +63,7 @@ const CertificationCard = ({
>
<Caret />
<h4 className='course-title'>
{`${
isExpanded ? collapseText : expandText
} ${coursesText.toLowerCase()}`}
{`${isExpanded ? collapseText : expandText}`}
</h4>
<div className='map-title-completed course-title'>
{completedCount === numberOfSteps ? (