PROBLEM
When validating a revoked credential in non-English locales, missing locale item data is displayed (see screenshots).
Correct: 
Bugged: 
Bugged: 
SOLUTION
I think the bug is in this function.
|
export default function generateRevocationReason (reason: string = '', status: CREDENTIAL_STATUS_OPTIONS = CREDENTIAL_STATUS_OPTIONS.REVOKED): string { |
I think statusText retrieves the localized text,
then in LINE 15 statusText is used again to retrieve localized text, which shouldn't work.
I believe using status here instead will fix the problem.
PROBLEM
When validating a revoked credential in non-English locales,
missing locale item datais displayed (see screenshots).Correct:


Bugged:
Bugged:
SOLUTION
I think the bug is in this function.
cert-verifier-js/src/domain/certificates/useCases/generateRevocationReason.ts
Line 10 in 278be3f
I think
statusTextretrieves the localized text,then in LINE 15
statusTextis used again to retrieve localized text, which shouldn't work.I believe using
statushere instead will fix the problem.