Skip to content

Commit fe9fadf

Browse files
ShaunSHamiltonhuyenltnguyennieldakarla
authored
fix(client): specific language curricula copy on certs (freeCodeCamp#64787)
Co-authored-by: Huyen Nguyen <[email protected]> Co-authored-by: Nielda Karla <[email protected]>
1 parent b23c3dc commit fe9fadf

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

client/i18n/locales/english/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@
11151115
"issued": "Issued",
11161116
"fulltext": "<0>This certifies that</0> <1>{{user}}</1> <2>successfully completed the</2> <3>{{title}}</3> <4>Developer Certification on {{time}}</4> <5>representing approximately {{completionTime}} hours of work</5>",
11171117
"fulltextNoHours": "<0>This certifies that</0> <1>{{user}}</1> <2>successfully completed the</2> <3>{{title}}</3> <4>Developer Certification on {{time}}</4>",
1118+
"fulltextLanguageExam": "<0>This certifies that</0> <1>{{user}}</1> <2>has successfully passed the</2> <3>{{title}}</3> <4>exam on {{time}}</4> <5>demonstrating competence in grammar, listening, and reading portions of the CEFR standards for this level based on the content covered in the curriculum.</5>",
11181119
"quincy-larson-signature": "Quincy Larson's Signature",
11191120
"julia-liuson-signature": "Julia Liuson's Signature",
11201121
"project": {

client/src/client-only-routes/show-certification.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,14 @@ const ShowCertification = (props: ShowCertificationProps): JSX.Element => {
389389

390390
const isMicrosoftCert = certSlug === Certification.FoundationalCSharp;
391391

392+
const isLanguageCert = [
393+
Certification.A1Chinese,
394+
Certification.A2Chinese,
395+
Certification.A2English,
396+
Certification.A2Spanish,
397+
Certification.B1English
398+
].includes(certSlug);
399+
392400
return (
393401
<Container className='certificate-outer-wrapper'>
394402
{isDonationDisplayed && !isDonationClosed ? (
@@ -441,7 +449,9 @@ const ShowCertification = (props: ShowCertificationProps): JSX.Element => {
441449
i18nKey={
442450
isMicrosoftCert
443451
? 'certification.fulltextNoHours'
444-
: 'certification.fulltext'
452+
: isLanguageCert
453+
? 'certification.fulltextLanguageExam'
454+
: 'certification.fulltext'
445455
}
446456
title={t(`certification.title.${certSlug}`, certTitle)}
447457
>

0 commit comments

Comments
 (0)