Refactor phrases

This commit is contained in:
Davide De Rosa 2024-10-03 18:46:54 +02:00
parent 73665c5436
commit bf4ec4982a
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
4 changed files with 12 additions and 13 deletions

View File

@ -47,7 +47,6 @@ public enum AppFeature: String {
public static let fullVersionFeaturesV2: [AppFeature] = [ public static let fullVersionFeaturesV2: [AppFeature] = [
.dns, .dns,
.httpProxy, .httpProxy,
.interactiveLogin,
.onDemand, .onDemand,
.providers, .providers,
.routing, .routing,

View File

@ -286,20 +286,20 @@ public enum Strings {
} }
} }
public enum General { public enum General {
public enum Rows {
/// Share on iCloud
public static let icloudSharing = Strings.tr("Localizable", "modules.general.rows.icloud_sharing", fallback: "Share on iCloud")
public enum IcloudSharing {
/// Share on iCloud
public static let purchase = Strings.tr("Localizable", "modules.general.rows.icloud_sharing.purchase", fallback: "Share on iCloud")
}
}
public enum Sections { public enum Sections {
public enum Storage { public enum Storage {
/// Profiles are stored to iCloud encrypted. /// Profiles are stored to iCloud encrypted.
public static let footer = Strings.tr("Localizable", "modules.general.sections.storage.footer", fallback: "Profiles are stored to iCloud encrypted.") public static let footer = Strings.tr("Localizable", "modules.general.sections.storage.footer", fallback: "Profiles are stored to iCloud encrypted.")
} }
} }
public enum Storage {
/// Share on iCloud
public static let shared = Strings.tr("Localizable", "modules.general.storage.shared", fallback: "Share on iCloud")
public enum Shared {
/// Share on iCloud
public static let purchase = Strings.tr("Localizable", "modules.general.storage.shared.purchase", fallback: "Share on iCloud")
}
}
} }
public enum HttpProxy { public enum HttpProxy {
public enum BypassDomains { public enum BypassDomains {

View File

@ -160,8 +160,8 @@
// MARK: - Module views // MARK: - Module views
"modules.general.sections.storage.footer" = "Profiles are stored to iCloud encrypted."; "modules.general.sections.storage.footer" = "Profiles are stored to iCloud encrypted.";
"modules.general.storage.shared" = "Share on iCloud"; "modules.general.rows.icloud_sharing" = "Share on iCloud";
"modules.general.storage.shared.purchase" = "Share on iCloud"; "modules.general.rows.icloud_sharing.purchase" = "Share on iCloud";
"modules.dns.servers.add" = "Add address"; "modules.dns.servers.add" = "Add address";
"modules.dns.search_domains.add" = "Add domain"; "modules.dns.search_domains.add" = "Add domain";

View File

@ -62,7 +62,7 @@ private extension StorageSection {
var sharingToggle: some View { var sharingToggle: some View {
switch iapManager.paywallReason(forFeature: .sharing) { switch iapManager.paywallReason(forFeature: .sharing) {
case .purchase(let appFeature): case .purchase(let appFeature):
Button(Strings.Modules.General.Storage.Shared.purchase) { Button(Strings.Modules.General.Rows.IcloudSharing.purchase) {
paywallReason = .purchase(appFeature) paywallReason = .purchase(appFeature)
} }
@ -70,7 +70,7 @@ private extension StorageSection {
EmptyView() EmptyView()
default: default:
Toggle(Strings.Modules.General.Storage.shared, isOn: $profileEditor.isShared) Toggle(Strings.Modules.General.Rows.icloudSharing, isOn: $profileEditor.isShared)
} }
} }
} }