From 304773d62be4b77882d38e5f1ab7a99b034a92ec Mon Sep 17 00:00:00 2001 From: Prashant <42613882+PrashantSakre@users.noreply.github.com> Date: Mon, 20 Dec 2021 22:54:09 +0530 Subject: [PATCH] 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 * Update client/i18n/locales/english/intro.json Co-authored-by: Ilenia Co-authored-by: Ilenia --- client/i18n/locales/english/intro.json | 4 ++-- client/src/templates/Introduction/components/block.tsx | 8 ++------ .../Introduction/components/certification-card.tsx | 8 ++------ 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/client/i18n/locales/english/intro.json b/client/i18n/locales/english/intro.json index 40cba07769..b7d7d28834 100644 --- a/client/i18n/locales/english/intro.json +++ b/client/i18n/locales/english/intro.json @@ -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" } } diff --git a/client/src/templates/Introduction/components/block.tsx b/client/src/templates/Introduction/components/block.tsx index 62392e1692..20b52cb67e 100644 --- a/client/src/templates/Introduction/components/block.tsx +++ b/client/src/templates/Introduction/components/block.tsx @@ -136,12 +136,10 @@ export class Block extends Component { 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 { >

- {`${ - isExpanded ? collapseText : expandText - } ${coursesText.toLowerCase()}`} + {`${isExpanded ? collapseText : expandText}`}

{this.renderCheckMark( diff --git a/client/src/templates/Introduction/components/certification-card.tsx b/client/src/templates/Introduction/components/certification-card.tsx index 56a78da61f..807d1d3c03 100644 --- a/client/src/templates/Introduction/components/certification-card.tsx +++ b/client/src/templates/Introduction/components/certification-card.tsx @@ -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 ( @@ -65,9 +63,7 @@ const CertificationCard = ({ >

- {`${ - isExpanded ? collapseText : expandText - } ${coursesText.toLowerCase()}`} + {`${isExpanded ? collapseText : expandText}`}

{completedCount === numberOfSteps ? (