From b660c499afde3d37c65288798a4477b372e19897 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 4 Oct 2024 00:47:28 +0200 Subject: [PATCH] Use static 'Profile' in editor title --- Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift | 2 ++ .../Sources/AppUI/Resources/en.lproj/Localizable.strings | 1 + .../Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift b/Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift index 7c33edd3..74346097 100644 --- a/Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift +++ b/Passepartout/Library/Sources/AppUI/L10n/SwiftGen+Strings.swift @@ -239,6 +239,8 @@ public enum Strings { public static let port = Strings.tr("Localizable", "global.port", fallback: "Port") /// Private key public static let privateKey = Strings.tr("Localizable", "global.private_key", fallback: "Private key") + /// Profile + public static let profile = Strings.tr("Localizable", "global.profile", fallback: "Profile") /// Protocol public static let `protocol` = Strings.tr("Localizable", "global.protocol", fallback: "Protocol") /// Public key diff --git a/Passepartout/Library/Sources/AppUI/Resources/en.lproj/Localizable.strings b/Passepartout/Library/Sources/AppUI/Resources/en.lproj/Localizable.strings index 52736002..e210d1a2 100644 --- a/Passepartout/Library/Sources/AppUI/Resources/en.lproj/Localizable.strings +++ b/Passepartout/Library/Sources/AppUI/Resources/en.lproj/Localizable.strings @@ -45,6 +45,7 @@ "global.password" = "Password"; "global.port" = "Port"; "global.private_key" = "Private key"; +"global.profile" = "Profile"; "global.protocol" = "Protocol"; "global.public_key" = "Public key"; "global.purchase" = "Purchase"; diff --git a/Passepartout/Library/Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift b/Passepartout/Library/Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift index 6781b66c..a03f94dd 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Profile/iOS/ProfileEditView+iOS.swift @@ -68,7 +68,7 @@ struct ProfileEditView: View, Routable { ) } .toolbar(content: toolbarContent) - .navigationTitle(profileEditor.name) + .navigationTitle(Strings.Global.profile) .navigationBarBackButtonHidden(true) .navigationDestination(for: NavigationRoute.self, destination: pushDestination) }