Skip to content

Commit

Permalink
feat: Set default value for pin code length and description #3030
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Nov 4, 2024
1 parent c912e99 commit 694dbe7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions lib/dashboard/user_pin/view/user_pin_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ class _UserPinViewState extends State<UserPinView> {
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,
Expand Down
1 change: 0 additions & 1 deletion lib/l10n/arb/app_ca.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions lib/l10n/arb/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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."
}
3 changes: 1 addition & 2 deletions lib/l10n/arb/app_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion lib/l10n/arb/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 6 additions & 3 deletions lib/l10n/untranslated.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
"restoreAnAppBackup",
"credentialPickShare",
"credentialPickTitle",
"credentialShareTitle"
"credentialShareTitle",
"enterYourSecretCode"
],

"es": [
Expand Down Expand Up @@ -144,7 +145,8 @@
"restoreAnAppBackup",
"credentialPickShare",
"credentialPickTitle",
"credentialShareTitle"
"credentialShareTitle",
"enterYourSecretCode"
],

"fr": [
Expand Down Expand Up @@ -223,6 +225,7 @@
"restoreAnAppBackup",
"credentialPickShare",
"credentialPickTitle",
"credentialShareTitle"
"credentialShareTitle",
"enterYourSecretCode"
]
}

0 comments on commit 694dbe7

Please sign in to comment.