From f5f115aadfca3f3a87e64ebb0e8473617ef118f3 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Tue, 9 Sep 2025 22:27:55 -0700 Subject: [PATCH] Protection level string --- .../Packages/Resources/Localizable.xcstrings | 243 +----------------- .../Views/Secrets/CreateSecretView.swift | 2 +- 2 files changed, 12 insertions(+), 233 deletions(-) diff --git a/Sources/Packages/Resources/Localizable.xcstrings b/Sources/Packages/Resources/Localizable.xcstrings index 89f8b34..4c74ae6 100644 --- a/Sources/Packages/Resources/Localizable.xcstrings +++ b/Sources/Packages/Resources/Localizable.xcstrings @@ -411,83 +411,6 @@ } } }, - "agent_setup_notice_title" : { - "extractionState" : "manual", - "localizations" : { - "ca" : { - "stringUnit" : { - "state" : "translated", - "value" : "Inicialitza Secretive" - } - }, - "de" : { - "stringUnit" : { - "state" : "translated", - "value" : "Secretive Einrichten" - } - }, - "en" : { - "stringUnit" : { - "state" : "translated", - "value" : "Setup Secretive" - } - }, - "fi" : { - "stringUnit" : { - "state" : "translated", - "value" : "Asenna Secretive" - } - }, - "fr" : { - "stringUnit" : { - "state" : "translated", - "value" : "Configurer Secretive" - } - }, - "it" : { - "stringUnit" : { - "state" : "translated", - "value" : "Imposta Secretive" - } - }, - "ja" : { - "stringUnit" : { - "state" : "translated", - "value" : "Secretiveをセットアップ" - } - }, - "ko" : { - "stringUnit" : { - "state" : "translated", - "value" : "Secretive 설치" - } - }, - "pl" : { - "stringUnit" : { - "state" : "translated", - "value" : "Konfiguracja Secretive" - } - }, - "pt-BR" : { - "stringUnit" : { - "state" : "translated", - "value" : "Configurar Secretive" - } - }, - "ru" : { - "stringUnit" : { - "state" : "translated", - "value" : "Настроить Secretive" - } - }, - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "设置 Secretive" - } - } - } - }, "agentDetailsLocationTitle" : { "extractionState" : "manual", "localizations" : { @@ -653,83 +576,6 @@ } } }, - "app_menu_setup_button" : { - "extractionState" : "manual", - "localizations" : { - "ca" : { - "stringUnit" : { - "state" : "translated", - "value" : "Inicialitza Secretive" - } - }, - "de" : { - "stringUnit" : { - "state" : "translated", - "value" : "Secretive Einrichten" - } - }, - "en" : { - "stringUnit" : { - "state" : "translated", - "value" : "Setup Secretive" - } - }, - "fi" : { - "stringUnit" : { - "state" : "translated", - "value" : "Asenna Secretive" - } - }, - "fr" : { - "stringUnit" : { - "state" : "translated", - "value" : "Configurer Secretive" - } - }, - "it" : { - "stringUnit" : { - "state" : "translated", - "value" : "Imposta Secretive" - } - }, - "ja" : { - "stringUnit" : { - "state" : "translated", - "value" : "セットアップ" - } - }, - "ko" : { - "stringUnit" : { - "state" : "translated", - "value" : "Secretive 설치" - } - }, - "pl" : { - "stringUnit" : { - "state" : "translated", - "value" : "Skonfiguruj Scretive" - } - }, - "pt-BR" : { - "stringUnit" : { - "state" : "translated", - "value" : "Configurar Secretive" - } - }, - "ru" : { - "stringUnit" : { - "state" : "translated", - "value" : "Настроить Secretive" - } - }, - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "设置 Secretive" - } - } - } - }, "app_not_in_applications_notice_detail_description" : { "extractionState" : "manual", "localizations" : { @@ -1196,84 +1042,6 @@ } } }, - "auth_context_request_verify_description" : { - "comment" : "When the user performs a signature verification action using a secret, they are shown a prompt to approve the action. This is the description, showing which secret will be used. The placeholder is the name of the secret. NOTE: This is currently not exposed in UI.", - "extractionState" : "manual", - "localizations" : { - "ca" : { - "stringUnit" : { - "state" : "translated", - "value" : "verifica una signatura usant el secret \"%1$(secretName)@\"" - } - }, - "de" : { - "stringUnit" : { - "state" : "translated", - "value" : "eine Signatur mit dem Secret \"%1$(secretName)@\" verifizieren" - } - }, - "en" : { - "stringUnit" : { - "state" : "translated", - "value" : "verify a signature using secret \"%1$(secretName)@“" - } - }, - "fi" : { - "stringUnit" : { - "state" : "translated", - "value" : "varmista allekirjoitus käyttäen salaisuutta \"%1$(secretName)@\"" - } - }, - "fr" : { - "stringUnit" : { - "state" : "translated", - "value" : "vérifier une signature en utilisant le secret \"%1$(secretName)@\"" - } - }, - "it" : { - "stringUnit" : { - "state" : "translated", - "value" : "verifica una firma usando il segreto \"%1$(secretName)@\"" - } - }, - "ja" : { - "stringUnit" : { - "state" : "translated", - "value" : "シークレット“%1$(secretName)@”を使って署名を検証します" - } - }, - "ko" : { - "stringUnit" : { - "state" : "translated", - "value" : "비밀 \"%1$(secretName)@\"를 사용하여 서명 검증" - } - }, - "pl" : { - "stringUnit" : { - "state" : "translated", - "value" : "zweryfikuj sygnaturę za pomocą sekretu “%1$(secretName)@”" - } - }, - "pt-BR" : { - "stringUnit" : { - "state" : "translated", - "value" : "verificar a assinatura utilizando o segredo \"%1$(secretName)@\"" - } - }, - "ru" : { - "stringUnit" : { - "state" : "translated", - "value" : "верифицировать подпись используя секрет \"%1$(secretName)@\"" - } - }, - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "使用密钥串 \"%1$(secretName)@\" 认证" - } - } - } - }, "copy_button" : { "extractionState" : "manual", "localizations" : { @@ -1967,6 +1735,17 @@ } } }, + "create_secret_protection_level_title" : { + "extractionState" : "manual", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Protection Level" + } + } + } + }, "create_secret_require_authentication_biometric_current_description" : { "extractionState" : "manual", "localizations" : { diff --git a/Sources/Secretive/Views/Secrets/CreateSecretView.swift b/Sources/Secretive/Views/Secrets/CreateSecretView.swift index 78fd4e6..192c3dc 100644 --- a/Sources/Secretive/Views/Secrets/CreateSecretView.swift +++ b/Sources/Secretive/Views/Secrets/CreateSecretView.swift @@ -28,7 +28,7 @@ struct CreateSecretView: View { Section { TextField(String(localized: .createSecretNameLabel), text: $name, prompt: Text(.createSecretNamePlaceholder)) VStack(alignment: .leading, spacing: 10) { - Picker(.createSecretRequireAuthenticationTitle, selection: $authenticationRequirement) { + Picker(.createSecretProtectionLevelTitle, selection: $authenticationRequirement) { ForEach(authenticationOptions) { option in HStack { switch option {