Skip to content

Commit

Permalink
fixup! Show number of invalid private keys in V0 extension migration …
Browse files Browse the repository at this point in the history
…step
  • Loading branch information
lukaw3d committed Dec 19, 2023
1 parent 9a21187 commit ca9e2d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/app/components/Persist/MigrateV0StateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,17 @@ export function MigrateV0StateForm() {
messages={{ required: t('migrateV0Extension.requiredField', 'This field is required') }}
{...preventSavingInputsToUserData}
>
<>
{/*
Workaround for i18next-scanner to pickup plurals correctly, because it is missing
defaultValue_zero, defaultValue_one, defaultValue_other here:
https://github.com/i18next/i18next-scanner/blob/4687b6a/src/parser.js#L502-L503
*/}
{t(

Check warning on line 186 in src/app/components/Persist/MigrateV0StateForm.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/components/Persist/MigrateV0StateForm.tsx#L186

Added line #L186 was not covered by tests
'migrateV0Extension.backupInvalidPrivateKeys.description_one',
'1 of your private keys has typos and won’t be stored by the new wallet extension. Please make sure to copy it and store it elsewhere before proceeding, so you can correct it later.',
) && null}

Check warning on line 189 in src/app/components/Persist/MigrateV0StateForm.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/components/Persist/MigrateV0StateForm.tsx#L189

Added line #L189 was not covered by tests
</>
<Paragraph>
{t(
'migrateV0Extension.backupInvalidPrivateKeys.description',
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@
"backupInvalidPrivateKeys": {
"confirm": "I’ve safely stored my private keys",
"description": "{{count}} of your private keys have typos and won’t be stored by the new wallet extension. Please make sure to copy them and store them elsewhere before proceeding, so you can correct them later.",
"description_one": "1 of your private keys has typos and won’t be stored by the new wallet extension. Please make sure to copy it and store it elsewhere before proceeding, so you can correct it later.",
"description_plural": "{{count}} of your private keys have typos and won’t be stored by the new wallet extension. Please make sure to copy them and store them elsewhere before proceeding, so you can correct them later.",
"reveal": "Tap to show invalid private key"
},
Expand Down

0 comments on commit ca9e2d8

Please sign in to comment.