diff --git a/.changelog/1809.trivial.md b/.changelog/1809.trivial.md new file mode 100644 index 0000000000..add46ec9af --- /dev/null +++ b/.changelog/1809.trivial.md @@ -0,0 +1 @@ +Show number of invalid private keys in V0 extension migration step diff --git a/src/app/components/Persist/MigrateV0StateForm.tsx b/src/app/components/Persist/MigrateV0StateForm.tsx index 895395921f..39dbecd281 100644 --- a/src/app/components/Persist/MigrateV0StateForm.tsx +++ b/src/app/components/Persist/MigrateV0StateForm.tsx @@ -177,10 +177,22 @@ 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( + '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} + {t( 'migrateV0Extension.backupInvalidPrivateKeys.description', - 'Some 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.', + '{{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.', + { count: migratingV0State.invalidPrivateKeys.length }, )} diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 60a07a86c5..8b0a3f6fbe 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -242,7 +242,9 @@ "migrateV0Extension": { "backupInvalidPrivateKeys": { "confirm": "I’ve safely stored my private keys", - "description": "Some 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.", + "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" }, "backupMnemonic": {