From 462b020a387b840dbac07fc163ee79679fd68755 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Thu, 4 Jan 2024 17:46:08 -0800 Subject: [PATCH] No secure storage view --- Sources/Secretive/Localizable.xcstrings | 37 +++++++++++++++++----- Sources/Secretive/Views/NoStoresView.swift | 7 ++-- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/Sources/Secretive/Localizable.xcstrings b/Sources/Secretive/Localizable.xcstrings index f78e1b7..808dea8 100644 --- a/Sources/Secretive/Localizable.xcstrings +++ b/Sources/Secretive/Localizable.xcstrings @@ -215,9 +215,6 @@ } } } - }, - "If you're looking to add one to your Mac, the YubiKey 5 Series are great." : { - }, "Ignore" : { @@ -234,8 +231,35 @@ "No Secrets" : { }, - "No Secure Storage Available" : { - + "no_secure_storage_description" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Your Mac doesn't have a Secure Enclave, and there's not a compatible Smart Card inserted." + } + } + } + }, + "no_secure_storage_title" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "No Secure Storage Available" + } + } + } + }, + "no_secure_storage_yubico_link" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "If you're looking to add one to your Mac, the YubiKey 5 Series are great." + } + } + } }, "Public Key" : { @@ -436,9 +460,6 @@ }, "Use your Smart Card's management tool to create a secret." : { - }, - "Your Mac doesn't have a Secure Enclave, and there's not a compatible Smart Card inserted." : { - } }, "version" : "1.0" diff --git a/Sources/Secretive/Views/NoStoresView.swift b/Sources/Secretive/Views/NoStoresView.swift index 496656f..3ac4841 100644 --- a/Sources/Secretive/Views/NoStoresView.swift +++ b/Sources/Secretive/Views/NoStoresView.swift @@ -4,9 +4,10 @@ struct NoStoresView: View { var body: some View { VStack { - Text("No Secure Storage Available").bold() - Text("Your Mac doesn't have a Secure Enclave, and there's not a compatible Smart Card inserted.") - Link("If you're looking to add one to your Mac, the YubiKey 5 Series are great.", destination: URL(string: "https://www.yubico.com/products/compare-yubikey-5-series/")!) + Text("no_secure_storage_title") + .bold() + Text("no_secure_storage_description") + Link("no_secure_storage_yubico_link", destination: URL(string: "https://www.yubico.com/products/compare-yubikey-5-series/")!) }.padding() }