Use i18n for biometric auth types

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-08-11 10:36:26 +03:00
parent 793579885a
commit 9c37eac6f4
No known key found for this signature in database
GPG Key ID: C9A094959935A952
2 changed files with 6 additions and 3 deletions

View File

@ -48,9 +48,9 @@
(defn get-label [supported-biometric-auth]
(case supported-biometric-auth
:fingerprint "Fingerprint"
:FaceID "Face ID"
"Touch ID"))
:fingerprint (i18n/label :t/biometric-fingerprint)
:FaceID (i18n/label :t/biometric-faceid)
(i18n/label :t/biometric-touchid)))
(defn- get-error-message
"must return an error message for the user"

View File

@ -75,6 +75,9 @@
"biometric-disable-password-title": "Disable password saving",
"biometric-disable-password-description": "If you disable this, you will also ",
"biometric-enable-button": "Enable {{bio-type-label}}",
"biometric-fingerprint": "Fingerprint",
"biometric-faceid": "Face ID",
"biometric-touchid": "Touch ID",
"blank-keycard-text": "You can proceed with your keycard once you've generated your keys and name",
"blank-keycard-title": "Looks like youve tapped \na blank keycard",
"block": "Block",