Refactor phrases
This commit is contained in:
parent
73665c5436
commit
bf4ec4982a
|
@ -47,7 +47,6 @@ public enum AppFeature: String {
|
|||
public static let fullVersionFeaturesV2: [AppFeature] = [
|
||||
.dns,
|
||||
.httpProxy,
|
||||
.interactiveLogin,
|
||||
.onDemand,
|
||||
.providers,
|
||||
.routing,
|
||||
|
|
|
@ -286,20 +286,20 @@ public enum Strings {
|
|||
}
|
||||
}
|
||||
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 Storage {
|
||||
/// 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 BypassDomains {
|
||||
|
|
|
@ -160,8 +160,8 @@
|
|||
// MARK: - Module views
|
||||
|
||||
"modules.general.sections.storage.footer" = "Profiles are stored to iCloud encrypted.";
|
||||
"modules.general.storage.shared" = "Share on iCloud";
|
||||
"modules.general.storage.shared.purchase" = "Share on iCloud";
|
||||
"modules.general.rows.icloud_sharing" = "Share on iCloud";
|
||||
"modules.general.rows.icloud_sharing.purchase" = "Share on iCloud";
|
||||
|
||||
"modules.dns.servers.add" = "Add address";
|
||||
"modules.dns.search_domains.add" = "Add domain";
|
||||
|
|
|
@ -62,7 +62,7 @@ private extension StorageSection {
|
|||
var sharingToggle: some View {
|
||||
switch iapManager.paywallReason(forFeature: .sharing) {
|
||||
case .purchase(let appFeature):
|
||||
Button(Strings.Modules.General.Storage.Shared.purchase) {
|
||||
Button(Strings.Modules.General.Rows.IcloudSharing.purchase) {
|
||||
paywallReason = .purchase(appFeature)
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ private extension StorageSection {
|
|||
EmptyView()
|
||||
|
||||
default:
|
||||
Toggle(Strings.Modules.General.Storage.shared, isOn: $profileEditor.isShared)
|
||||
Toggle(Strings.Modules.General.Rows.icloudSharing, isOn: $profileEditor.isShared)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue