diff --git a/AuthenticatorShared/UI/Platform/Settings/Settings/SettingsView.swift b/AuthenticatorShared/UI/Platform/Settings/Settings/SettingsView.swift index a39f7211d..5cc2ba927 100644 --- a/AuthenticatorShared/UI/Platform/Settings/Settings/SettingsView.swift +++ b/AuthenticatorShared/UI/Platform/Settings/Settings/SettingsView.swift @@ -217,9 +217,9 @@ struct SettingsView: View { private func biometricsToggleText(_ biometryType: BiometricAuthenticationType) -> String { switch biometryType { case .faceID: - Localizations.unlockWith(Localizations.faceID) + Localizations.unlockWithFaceID case .touchID: - Localizations.unlockWith(Localizations.touchID) + Localizations.unlockWithTouchID } } diff --git a/BitwardenResources/Localizations/en.lproj/Localizable.strings b/BitwardenResources/Localizations/en.lproj/Localizable.strings index 9f2e6b95c..a2c7691c5 100644 --- a/BitwardenResources/Localizations/en.lproj/Localizable.strings +++ b/BitwardenResources/Localizations/en.lproj/Localizable.strings @@ -182,9 +182,11 @@ "SyncVaultNow" = "Sync vault now"; "TouchID" = "Touch ID"; "TwoStepLogin" = "Two-step login"; -"UnlockWith" = "Unlock with %1$@"; +"UnlockWithBiometrics" = "Unlock with biometrics"; +"UnlockWithFaceID" = "Unlock with Face ID"; +"UnlockWithTouchID" = "Unlock with Touch ID"; +"UnlockWithOpticID" = "Unlock with Optic ID"; "UnlockWithPIN" = "Unlock with PIN code"; -"UnlockWithUnknownBiometrics" = "Unlock with biometrics"; "Validating" = "Validating"; "VerificationCode" = "Verification code"; "ViewItem" = "View item"; diff --git a/BitwardenShared/UI/Auth/VaultUnlockSetup/VaultUnlockSetupState.swift b/BitwardenShared/UI/Auth/VaultUnlockSetup/VaultUnlockSetupState.swift index 2868a24c6..a95823373 100644 --- a/BitwardenShared/UI/Auth/VaultUnlockSetup/VaultUnlockSetupState.swift +++ b/BitwardenShared/UI/Auth/VaultUnlockSetup/VaultUnlockSetupState.swift @@ -61,13 +61,13 @@ struct VaultUnlockSetupState: Equatable { case let .biometrics(type): switch type { case .faceID: - Localizations.unlockWith(Localizations.faceID) + Localizations.unlockWithFaceID case .opticID: - Localizations.unlockWith(Localizations.opticID) + Localizations.unlockWithOpticID case .touchID: - Localizations.unlockWith(Localizations.touchID) + Localizations.unlockWithTouchID case .unknown: - Localizations.unlockWithUnknownBiometrics + Localizations.unlockWithBiometrics } case .pin: Localizations.unlockWithPIN diff --git a/BitwardenShared/UI/Platform/Settings/Settings/AccountSecurity/AccountSecurityView+ViewInspectorTests.swift b/BitwardenShared/UI/Platform/Settings/Settings/AccountSecurity/AccountSecurityView+ViewInspectorTests.swift index bf1e422fd..a391e4fc6 100644 --- a/BitwardenShared/UI/Platform/Settings/Settings/AccountSecurity/AccountSecurityView+ViewInspectorTests.swift +++ b/BitwardenShared/UI/Platform/Settings/Settings/AccountSecurity/AccountSecurityView+ViewInspectorTests.swift @@ -104,11 +104,11 @@ class AccountSecurityViewTests: BitwardenTestCase { func test_biometricsToggle() throws { processor.state.biometricUnlockStatus = .available(.faceID, enabled: false) _ = try subject.inspect().find( - toggleWithAccessibilityLabel: Localizations.unlockWith(Localizations.faceID), + toggleWithAccessibilityLabel: Localizations.unlockWithFaceID, ) processor.state.biometricUnlockStatus = .available(.touchID, enabled: true) _ = try subject.inspect().find( - toggleWithAccessibilityLabel: Localizations.unlockWith(Localizations.touchID), + toggleWithAccessibilityLabel: Localizations.unlockWithTouchID, ) } @@ -118,7 +118,7 @@ class AccountSecurityViewTests: BitwardenTestCase { processor.state.biometricUnlockStatus = .notAvailable XCTAssertNil( try? subject.inspect().find( - toggleWithAccessibilityLabel: Localizations.unlockWith(Localizations.faceID), + toggleWithAccessibilityLabel: Localizations.unlockWithFaceID, ), ) } diff --git a/BitwardenShared/UI/Platform/Settings/Settings/AccountSecurity/AccountSecurityView.swift b/BitwardenShared/UI/Platform/Settings/Settings/AccountSecurity/AccountSecurityView.swift index f9c7cfc8b..e283468da 100644 --- a/BitwardenShared/UI/Platform/Settings/Settings/AccountSecurity/AccountSecurityView.swift +++ b/BitwardenShared/UI/Platform/Settings/Settings/AccountSecurity/AccountSecurityView.swift @@ -255,13 +255,13 @@ struct AccountSecurityView: View { private func biometricsToggleText(_ biometryType: BiometricAuthenticationType) -> String { switch biometryType { case .faceID: - Localizations.unlockWith(Localizations.faceID) + Localizations.unlockWithFaceID case .opticID: - Localizations.unlockWith(Localizations.opticID) + Localizations.unlockWithOpticID case .touchID: - Localizations.unlockWith(Localizations.touchID) + Localizations.unlockWithTouchID case .unknown: - Localizations.unlockWithUnknownBiometrics + Localizations.unlockWithBiometrics } } }