Use static 'Profile' in editor title

This commit is contained in:
Davide De Rosa 2024-10-04 00:47:28 +02:00
parent 07703fda9c
commit b660c499af
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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";

View File

@ -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)
}