fix(i18n,client): translate view certificate button (#48949)

fix(i18n): translate view certificate button
pull/48890/merge
YMatsuda 2023-01-07 13:33:45 +09:00 committed by GitHub
parent f2fcfe593d
commit 95aba7810b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,7 @@
"view": "View",
"view-code": "View Code",
"view-project": "View Project",
"view-cert-title": "View {{certTitle}}",
"show-cert": "Show Certification",
"claim-cert": "Claim Certification",
"save-progress": "Save Progress",

View File

@ -55,7 +55,9 @@ function CertButton({ username, cert }: CertButtonProps): JSX.Element {
to={`/certification/${username}/${cert.certSlug}`}
data-cy='claimed-certification'
>
View {t(`certification.title.${cert.certSlug}`)}
{t('buttons.view-cert-title', {
certTitle: t(`certification.title.${cert.certSlug}`)
})}
</Link>
</Col>
</Row>