Skip to content

missing locale item data when checking revocation status in non-English languages #2041

Description

@amazanzan

PROBLEM

When validating a revoked credential in non-English locales, missing locale item data is displayed (see screenshots).

Correct: Image
Bugged: Image
Bugged: Image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions