mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-13 06:04:13 -04:00
fix(client): specific language curricula copy on certs (#64787)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Co-authored-by: Nielda Karla <90112119+nieldakarla@users.noreply.github.com>
This commit is contained in:
@@ -1115,6 +1115,7 @@
|
||||
"issued": "Issued",
|
||||
"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>",
|
||||
"fulltextNoHours": "<0>This certifies that</0> <1>{{user}}</1> <2>successfully completed the</2> <3>{{title}}</3> <4>Developer Certification on {{time}}</4>",
|
||||
"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>",
|
||||
"quincy-larson-signature": "Quincy Larson's Signature",
|
||||
"julia-liuson-signature": "Julia Liuson's Signature",
|
||||
"project": {
|
||||
|
||||
@@ -389,6 +389,14 @@ const ShowCertification = (props: ShowCertificationProps): JSX.Element => {
|
||||
|
||||
const isMicrosoftCert = certSlug === Certification.FoundationalCSharp;
|
||||
|
||||
const isLanguageCert = [
|
||||
Certification.A1Chinese,
|
||||
Certification.A2Chinese,
|
||||
Certification.A2English,
|
||||
Certification.A2Spanish,
|
||||
Certification.B1English
|
||||
].includes(certSlug);
|
||||
|
||||
return (
|
||||
<Container className='certificate-outer-wrapper'>
|
||||
{isDonationDisplayed && !isDonationClosed ? (
|
||||
@@ -441,7 +449,9 @@ const ShowCertification = (props: ShowCertificationProps): JSX.Element => {
|
||||
i18nKey={
|
||||
isMicrosoftCert
|
||||
? 'certification.fulltextNoHours'
|
||||
: 'certification.fulltext'
|
||||
: isLanguageCert
|
||||
? 'certification.fulltextLanguageExam'
|
||||
: 'certification.fulltext'
|
||||
}
|
||||
title={t(`certification.title.${certSlug}`, certTitle)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user