Skip to content

Extract hardcoded text from the VerificationCard component #10

@dmitrizagidulin

Description

@dmitrizagidulin

Go through https://github.com/interop-alliance/digital-credential-wallet/edit/main/app/components/VerificationCard/VerificationCard.tsx, and extract all of the hardcoded UI text (it's going to be wrapped in <Text ..> components) into a translations variable.

So, at the top of the file (say, around line 25), add:

const TRANSLATIONS = {
  verifyingMessage: {
    en: 'Verifying...',
    es: '...'
  }
};

And then lower on, when you encounter the Text component 'Verifying', replace it with the variable reference, for example, TRANSLATIONS.verifyingMessage.en.

Metadata

Metadata

Assignees

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