mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-10 17:47:19 +00:00
NSLS -> String(localized:)
This commit is contained in:
parent
59020ac5a4
commit
53c4eea96c
@ -17,7 +17,7 @@ extension SecureEnclave {
|
|||||||
TKTokenWatcher().tokenIDs.contains("com.apple.setoken")
|
TKTokenWatcher().tokenIDs.contains("com.apple.setoken")
|
||||||
}
|
}
|
||||||
public let id = UUID()
|
public let id = UUID()
|
||||||
public let name = NSLocalizedString("Secure Enclave", comment: "Secure Enclave")
|
public let name = String(localized: "secure_enclave")
|
||||||
@Published public private(set) var secrets: [Secret] = []
|
@Published public private(set) var secrets: [Secret] = []
|
||||||
|
|
||||||
private var persistedAuthenticationContexts: [Secret: PersistentAuthenticationContext] = [:]
|
private var persistedAuthenticationContexts: [Secret: PersistentAuthenticationContext] = [:]
|
||||||
|
@ -12,7 +12,7 @@ extension SmartCard {
|
|||||||
|
|
||||||
@Published public var isAvailable: Bool = false
|
@Published public var isAvailable: Bool = false
|
||||||
public let id = UUID()
|
public let id = UUID()
|
||||||
public private(set) var name = NSLocalizedString("Smart Card", comment: "Smart Card")
|
public private(set) var name = String(localized: "smart_card")
|
||||||
@Published public private(set) var secrets: [Secret] = []
|
@Published public private(set) var secrets: [Secret] = []
|
||||||
private let watcher = TKTokenWatcher()
|
private let watcher = TKTokenWatcher()
|
||||||
private var tokenID: String?
|
private var tokenID: String?
|
||||||
@ -138,7 +138,7 @@ extension SmartCard.Store {
|
|||||||
private func loadSecrets() {
|
private func loadSecrets() {
|
||||||
guard let tokenID = tokenID else { return }
|
guard let tokenID = tokenID else { return }
|
||||||
|
|
||||||
let fallbackName = NSLocalizedString("Smart Card", comment: "Smart Card")
|
let fallbackName = String(localized: "smart_card")
|
||||||
if let driverName = watcher.tokenInfo(forTokenID: tokenID)?.driverName {
|
if let driverName = watcher.tokenInfo(forTokenID: tokenID)?.driverName {
|
||||||
name = driverName
|
name = driverName
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user