Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add localization keys for context menu (#993)
Leendert de Borst21177e992793
diff --git a/apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings b/apps/mobile-app/ios/Autofill/en.lproj/Localizable.stringsindex b4803ce2e..429b03c0f 100644--- a/apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings+++ b/apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings@@ -26,4 +26,17 @@"failed_to_load_credentials" = "Failed to load credentials";"face_id_touch_id" = "Face ID / Touch ID";"face_id" = "Face ID";-"touch_id" = "Touch ID";\ No newline at end of file+"touch_id" = "Touch ID";++/* Context menu strings */+"copy_username" = "Copy Username";+"copy_password" = "Copy Password";+"copy_email" = "Copy Email";+"view_details" = "View Details";+"edit" = "Edit";+"username_copied" = "Username copied";+"password_copied" = "Password copied";+"email_copied" = "Email copied";++/* Search bar */+"search_credentials" = "Search credentials...";diff --git a/apps/mobile-app/ios/Autofill/nl.lproj/Localizable.strings b/apps/mobile-app/ios/Autofill/nl.lproj/Localizable.stringsindex 3e4ef8719..110b14aac 100644--- a/apps/mobile-app/ios/Autofill/nl.lproj/Localizable.strings+++ b/apps/mobile-app/ios/Autofill/nl.lproj/Localizable.strings@@ -26,4 +26,17 @@"failed_to_load_credentials" = "Laden van referenties mislukt";"face_id_touch_id" = "Face ID / Touch ID";"face_id" = "Face ID";-"touch_id" = "Touch ID";\ No newline at end of file+"touch_id" = "Touch ID";++/* Context menu strings */+"copy_username" = "Kopieer Gebruikersnaam";+"copy_password" = "Kopieer Wachtwoord";+"copy_email" = "Kopieer E-mail";+"view_details" = "Bekijk Details";+"edit" = "Bewerken";+"username_copied" = "Gebruikersnaam gekopieerd";+"password_copied" = "Wachtwoord gekopieerd";+"email_copied" = "E-mail gekopieerd";++/* Search bar */+"search_credentials" = "Zoek referenties...";diff --git a/apps/mobile-app/ios/VaultUI/Components/CredentialCardView.swift b/apps/mobile-app/ios/VaultUI/Components/CredentialCardView.swiftindex 9ae84a82e..e988d4d50 100644--- a/apps/mobile-app/ios/VaultUI/Components/CredentialCardView.swift+++ b/apps/mobile-app/ios/VaultUI/Components/CredentialCardView.swift@@ -52,42 +52,42 @@ public struct CredentialCard: View {if let username = credential.username, !username.isEmpty {Button(action: {UIPasteboard.general.string = username- copyToastMessage = "Username copied"+ copyToastMessage = NSLocalizedString("username_copied", comment: "Username copied message")showCopyToast = true// Delay for 1 second before calling onCopy which dismisses the viewDispatchQueue.main.asyncAfter(deadline: .now() + 1) {onCopy()}}, label: {- Label("Copy Username", systemImage: "person")+ Label(NSLocalizedString("copy_username", comment: "Copy username context menu"), systemImage: "person")})}if let password = credential.password?.value, !password.isEmpty {Button(action: {UIPasteboard.general.string = password- copyToastMessage = "Password copied"+ copyToastMessage = NSLocalizedString("password_copied", comment: "Password copied message")showCopyToast = true// Delay for 1 second before calling onCopy which dismisses the viewDispatchQueue.main.asyncAfter(deadline: .now() + 1) {onCopy()}}, label: {- Label("Copy Password", systemImage: "key")+ Label(NSLocalizedString("copy_password", comment: "Copy password context menu"), systemImage: "key")})}if let email = credential.alias?.email, !email.isEmpty {Button(action: {UIPasteboard.general.string = email- copyToastMessage = "Email copied"+ copyToastMessage = NSLocalizedString("email_copied", comment: "Email copied message")showCopyToast = true// Delay for 1 second before calling onCopy which dismisses the viewDispatchQueue.main.asyncAfter(deadline: .now() + 1) {onCopy()}}, label: {- Label("Copy Email", systemImage: "envelope")+ Label(NSLocalizedString("copy_email", comment: "Copy email context menu"), systemImage: "envelope")})}@@ -102,7 +102,7 @@ public struct CredentialCard: View {UIApplication.shared.open(url)}}, label: {- Label("View Details", systemImage: "eye")+ Label(NSLocalizedString("view_details", comment: "View details context menu"), systemImage: "eye")})Button(action: {@@ -110,7 +110,7 @@ public struct CredentialCard: View {UIApplication.shared.open(url)}}, label: {- Label("Edit", systemImage: "pencil")+ Label(NSLocalizedString("edit", comment: "Edit context menu"), systemImage: "pencil")})}).overlay(diff --git a/apps/mobile-app/ios/VaultUI/Components/SearchBar.swift b/apps/mobile-app/ios/VaultUI/Components/SearchBar.swiftindex 29f1cfecb..9d5216f5f 100644--- a/apps/mobile-app/ios/VaultUI/Components/SearchBar.swift+++ b/apps/mobile-app/ios/VaultUI/Components/SearchBar.swift@@ -1,7 +1,7 @@import SwiftUIimport Macaw-/// Service logo view+/// Search bar viewpublic struct SearchBarView: View {@Binding var text: String@Environment(\.colorScheme) private var colorScheme@@ -13,7 +13,7 @@ public struct SearchBarView: View {.foregroundColor(colorScheme == .dark ? ColorConstants.Dark.text : ColorConstants.Light.text).padding(.leading, 8)- TextField("Search credentials...", text: $text)+ TextField(NSLocalizedString("search_credentials", comment: "Search credentials placeholder"), text: $text).autocapitalization(.none).disableAutocorrection(true).foregroundColor(colorScheme == .dark ? ColorConstants.Dark.text : ColorConstants.Light.text)diff --git a/apps/mobile-app/ios/VaultUI/en.lproj/Localizable.strings b/apps/mobile-app/ios/VaultUI/en.lproj/Localizable.stringsdeleted file mode 100644index d15d3c655..000000000--- a/apps/mobile-app/ios/VaultUI/en.lproj/Localizable.strings+++ /dev/null@@ -1,18 +0,0 @@-/* English localization strings for VaultUI framework */-"loading_credentials" = "Loading credentials...";-"no_credentials_found" = "No credentials found";-"no_credentials_match" = "No existing credentials match your search";-"create_new_credential" = "Create New Credential";-"select_credential" = "Select Credential";-"select_text_to_insert" = "Select Text to Insert";-"cancel" = "Cancel";-"choose_username" = "Choose Username";-"select_text_to_insert_message" = "Select the text to insert into the focused input field";-"choose_username_message" = "This website may require either your username or your email address to log in";-"username_prefix" = "Username: ";-"email_prefix" = "Email: ";-"password" = "Password";-"error" = "Error";-"credentials_load_error" = "Failed to load credentials. Please open the AliasVault app to check for updates.";-"no_credential_selected" = "No credential selected.";-"ok" = "OK";\ No newline at end of filediff --git a/apps/mobile-app/ios/VaultUI/nl.lproj/Localizable.strings b/apps/mobile-app/ios/VaultUI/nl.lproj/Localizable.stringsdeleted file mode 100644index ab6746538..000000000--- a/apps/mobile-app/ios/VaultUI/nl.lproj/Localizable.strings+++ /dev/null@@ -1,18 +0,0 @@-/* Dutch localization strings for VaultUI framework */-"loading_credentials" = "Referenties laden...";-"no_credentials_found" = "Geen referenties gevonden";-"no_credentials_match" = "Geen bestaande referenties komen overeen met uw zoekopdracht";-"create_new_credential" = "Nieuwe Referentie Aanmaken";-"select_credential" = "Selecteer Referentie";-"select_text_to_insert" = "Selecteer Tekst om In te Voegen";-"cancel" = "Annuleren";-"choose_username" = "Kies Gebruikersnaam";-"select_text_to_insert_message" = "Selecteer de tekst om in te voegen in het gefocuste invoerveld";-"choose_username_message" = "Deze website vereist mogelijk uw gebruikersnaam of e-mailadres om in te loggen";-"username_prefix" = "Gebruikersnaam: ";-"email_prefix" = "E-mail: ";-"password" = "Wachtwoord";-"error" = "Fout";-"credentials_load_error" = "Laden van referenties mislukt. Open de AliasVault app om te controleren op updates.";-"no_credential_selected" = "Geen referentie geselecteerd.";-"ok" = "OK";\ No newline at end of file