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:
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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(
|
||||
|
@ -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 ? (
|
||||
|
Reference in New Issue
Block a user