Fix strings in OnDemandRulesView

This commit is contained in:
世界
2026-02-04 19:03:40 +08:00
parent 1a4990fa51
commit ef6d8d0fb8
2 changed files with 37 additions and 7 deletions
@@ -11,17 +11,17 @@ private enum OnDemandMode: String, CaseIterable, Identifiable {
var name: String {
switch self {
case .disabled: "Disabled"
case .alwaysOn: "Always On"
case .enabled: "Enabled"
case .disabled: String(localized: "Disabled")
case .alwaysOn: String(localized: "Always On")
case .enabled: String(localized: "Enabled")
}
}
var description: String {
switch self {
case .disabled: "VPN will not connect automatically."
case .alwaysOn: "Automatically connect VPN on any network."
case .enabled: "Automatically connect or disconnect VPN based on rules."
case .disabled: String(localized: "VPN will not connect automatically.")
case .alwaysOn: String(localized: "Automatically connect VPN on any network.")
case .enabled: String(localized: "Automatically connect or disconnect VPN based on rules.")
}
}
}