Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update translations (#1340)
Leendert de Borstf4cd3ae87fcf
diff --git a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Pin.swift b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Pin.swiftindex a84c46d27..80ad58ea4 100644--- a/apps/mobile-app/ios/VaultStoreKit/VaultStore+Pin.swift+++ b/apps/mobile-app/ios/VaultStoreKit/VaultStore+Pin.swift@@ -2,6 +2,7 @@ import Foundationimport CryptoKitimport Securityimport SignalArgon2+import VaultUI/// Extension for the VaultStore class to handle PIN unlock functionalityextension VaultStore {@@ -89,7 +90,9 @@ extension VaultStore {// Note: If PIN was previously locked (max attempts), it's automatically disabled and cleared,// so isPinEnabled() returning false means either PIN was never set up or it was locked and clearedguard isPinEnabled() else {- throw NSError(domain: "VaultStore", code: 25, userInfo: [NSLocalizedDescriptionKey: "PIN unlock is not configured"])+ throw NSError(domain: "VaultStore", code: 25, userInfo: [+ NSLocalizedDescriptionKey: NSLocalizedString("pin_not_configured", bundle: Bundle.vaultUI, comment: "PIN not configured error")+ ])}do {@@ -120,13 +123,19 @@ extension VaultStore {// If max attempts reached, disable PIN and clear all stored dataif newAttempts >= Self.maxPinAttempts {try? removeAndDisablePin()- throw NSError(domain: "VaultStore", code: 26, userInfo: [NSLocalizedDescriptionKey: "PIN locked after too many failed attempts"])+ throw NSError(domain: "VaultStore", code: 26, userInfo: [+ NSLocalizedDescriptionKey: NSLocalizedString("pin_locked_max_attempts", bundle: Bundle.vaultUI, comment: "PIN locked error")+ ])}// Return incorrect PIN error with attempts remaininglet attemptsRemaining = Self.maxPinAttempts - newAttempts+ let localizedMessage = String(+ format: NSLocalizedString("pin_incorrect_attempts_remaining", bundle: Bundle.vaultUI, comment: "Incorrect PIN with attempts remaining"),+ attemptsRemaining+ )throw NSError(domain: "VaultStore", code: 27, userInfo: [- NSLocalizedDescriptionKey: "Incorrect PIN. \(attemptsRemaining) attempts remaining",+ NSLocalizedDescriptionKey: localizedMessage,"attemptsRemaining": attemptsRemaining])}diff --git a/apps/mobile-app/ios/VaultUI/en.lproj/Localizable.strings b/apps/mobile-app/ios/VaultUI/en.lproj/Localizable.stringsindex 751c85683..4c397d485 100644Binary files a/apps/mobile-app/ios/VaultUI/en.lproj/Localizable.strings and b/apps/mobile-app/ios/VaultUI/en.lproj/Localizable.strings differ