From ca9e2d8a5225414863a673e80a015ac1bbfc832b Mon Sep 17 00:00:00 2001 From: lukaw3d Date: Tue, 19 Dec 2023 15:43:04 +0100 Subject: [PATCH] fixup! Show number of invalid private keys in V0 extension migration step --- src/app/components/Persist/MigrateV0StateForm.tsx | 11 +++++++++++ src/locales/en/translation.json | 1 + 2 files changed, 12 insertions(+) diff --git a/src/app/components/Persist/MigrateV0StateForm.tsx b/src/app/components/Persist/MigrateV0StateForm.tsx index 64b8f6323c..39dbecd281 100644 --- a/src/app/components/Persist/MigrateV0StateForm.tsx +++ b/src/app/components/Persist/MigrateV0StateForm.tsx @@ -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( + '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', diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index b86818a4d7..8b0a3f6fbe 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -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" },