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:
Shaun Hamilton
2025-12-21 18:00:15 +02:00
committed by GitHub
parent b23c3dc164
commit fe9fadf4e1
2 changed files with 12 additions and 1 deletions

View File

@@ -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": {

View File

@@ -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)}
>