mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-12-14 21:10:56 +00:00
39 lines
1.1 KiB
Swift
39 lines
1.1 KiB
Swift
// Copyright Anysphere Inc.
|
|
// Localization extensions for String.LocalizationValue
|
|
// These are normally generated by Xcode from String Catalogs, but SPM doesn't do this automatically.
|
|
|
|
import Foundation
|
|
|
|
public extension String.LocalizationValue {
|
|
|
|
// MARK: - Store Names
|
|
|
|
static var secureEnclave: String.LocalizationValue {
|
|
"secure_enclave"
|
|
}
|
|
|
|
static var smartCard: String.LocalizationValue {
|
|
"smart_card"
|
|
}
|
|
|
|
// MARK: - Secret Names
|
|
|
|
static var unnamedSecret: String.LocalizationValue {
|
|
"unnamed_secret"
|
|
}
|
|
|
|
// MARK: - Authentication Context
|
|
|
|
static var authContextRequestDenyButton: String.LocalizationValue {
|
|
"auth_context_request_deny_button"
|
|
}
|
|
|
|
static func authContextRequestSignatureDescription(appName: String, secretName: String) -> String.LocalizationValue {
|
|
"auth_context_request_signature_description \(appName) \(secretName)"
|
|
}
|
|
|
|
static func authContextPersistForDuration(secretName: String, duration: String) -> String.LocalizationValue {
|
|
"auth_context_persist_for_duration \(secretName) \(duration)"
|
|
}
|
|
}
|