From 694dbe735d6ec0dce7d2c72fdfedb24802698ffb Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Mon, 4 Nov 2024 15:52:29 +0545 Subject: [PATCH] feat: Set default value for pin code length and description #3030 --- lib/dashboard/user_pin/view/user_pin_page.dart | 5 ++--- lib/l10n/arb/app_ca.arb | 1 - lib/l10n/arb/app_en.arb | 4 ++-- lib/l10n/arb/app_es.arb | 3 +-- lib/l10n/arb/app_fr.arb | 1 - lib/l10n/untranslated.json | 9 ++++++--- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/dashboard/user_pin/view/user_pin_page.dart b/lib/dashboard/user_pin/view/user_pin_page.dart index 20a311984..f56b3defa 100644 --- a/lib/dashboard/user_pin/view/user_pin_page.dart +++ b/lib/dashboard/user_pin/view/user_pin_page.dart @@ -88,9 +88,8 @@ class _UserPinViewState extends State { backgroundColor: Theme.of(context).colorScheme.surface, scrollView: false, body: PinCodeWidget( - title: widget.txCode?.description ?? - l10n.pleaseInsertTheSecredCodeReceived, - passwordDigits: widget.txCode?.length ?? 4, + title: widget.txCode?.description ?? l10n.enterYourSecretCode, + passwordDigits: widget.txCode?.length ?? 6, deleteButton: Text( l10n.delete, style: Theme.of(context).textTheme.labelLarge, diff --git a/lib/l10n/arb/app_ca.arb b/lib/l10n/arb/app_ca.arb index 60dbc2674..108e25eb5 100644 --- a/lib/l10n/arb/app_ca.arb +++ b/lib/l10n/arb/app_ca.arb @@ -897,7 +897,6 @@ "pleaseSwitchToCorrectOIDC4VCProfile": "Canvia al perfil OIDC4VC correcte.", "authenticationSuccess": "Autenticació correcta", "format": "Format", - "pleaseInsertTheSecredCodeReceived": "Escriu el codi secret que has rebut.", "verifyIssuerWebsiteIdentity": "Verificar la identitat del lloc web de l'emissor", "verifyIssuerWebsiteIdentitySubtitle": "Per defecte: desactivat\nActivar per verificar la identitat del lloc web abans de l’accés.", "developerMode": "Mode desenvolupador", diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index 9e2142775..2f7640f93 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -894,7 +894,6 @@ "pleaseSwitchToCorrectOIDC4VCProfile": "Please switch to correct OIDC4VC profile.", "authenticationSuccess": "Authentication Success", "format": "Format", - "pleaseInsertTheSecredCodeReceived": "Please insert the secret code received.", "verifyIssuerWebsiteIdentity": "Verify issuer website identity", "verifyIssuerWebsiteIdentitySubtitle": "Enable to verify website identity before access. Default: Off.", "developerMode": "Developer Mode", @@ -1154,5 +1153,6 @@ }, "credentialPickShare": "Share", "credentialPickTitle": "Choose the credential(s) to wish to obtain", - "credentialShareTitle": "Choose the credential(s) to share" + "credentialShareTitle": "Choose the credential(s) to share", + "enterYourSecretCode": "Enter your secret code." } diff --git a/lib/l10n/arb/app_es.arb b/lib/l10n/arb/app_es.arb index 726b69bc5..0e72db31c 100644 --- a/lib/l10n/arb/app_es.arb +++ b/lib/l10n/arb/app_es.arb @@ -896,8 +896,7 @@ "oidc4vcProfile": "Perfil de OIDC4VC", "pleaseSwitchToCorrectOIDC4VCProfile": "Cambie al perfil de OIDC4VC correcto.", "authenticationSuccess": "Autenticación correcta", - "format": "Formato", - "pleaseInsertTheSecredCodeReceived": "Inserte el código secreto recibido.", + "format": "Formato", "verifyIssuerWebsiteIdentity": "Verificar la identidad del sitio web del emisor", "verifyIssuerWebsiteIdentitySubtitle": "Predeterminado: Desactivado\nActívelo para verificar la identidad del sitio web antes de acceder.", "developerMode": "Modo de desarrollador", diff --git a/lib/l10n/arb/app_fr.arb b/lib/l10n/arb/app_fr.arb index 6cabd8fb0..7dd2eb58a 100644 --- a/lib/l10n/arb/app_fr.arb +++ b/lib/l10n/arb/app_fr.arb @@ -897,7 +897,6 @@ "pleaseSwitchToCorrectOIDC4VCProfile": "Veuillez passer au bon profil OIDC4VC.", "authenticationSuccess": "Authentification Réussie", "format": "Format", - "pleaseInsertTheSecredCodeReceived": "Veuillez insérer le code secret reçu.", "verifyIssuerWebsiteIdentity": "Vérifier l'identité du site Web de l'émetteur", "verifyIssuerWebsiteIdentitySubtitle": "Par défaut : Désactivé\nActivez pour vérifier l'identité du site Web avant l'accès.", "developerMode": "Mode Développeur", diff --git a/lib/l10n/untranslated.json b/lib/l10n/untranslated.json index 9990f4f69..038d87224 100644 --- a/lib/l10n/untranslated.json +++ b/lib/l10n/untranslated.json @@ -70,7 +70,8 @@ "restoreAnAppBackup", "credentialPickShare", "credentialPickTitle", - "credentialShareTitle" + "credentialShareTitle", + "enterYourSecretCode" ], "es": [ @@ -144,7 +145,8 @@ "restoreAnAppBackup", "credentialPickShare", "credentialPickTitle", - "credentialShareTitle" + "credentialShareTitle", + "enterYourSecretCode" ], "fr": [ @@ -223,6 +225,7 @@ "restoreAnAppBackup", "credentialPickShare", "credentialPickTitle", - "credentialShareTitle" + "credentialShareTitle", + "enterYourSecretCode" ] }