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 { var name: String {
switch self { switch self {
case .disabled: "Disabled" case .disabled: String(localized: "Disabled")
case .alwaysOn: "Always On" case .alwaysOn: String(localized: "Always On")
case .enabled: "Enabled" case .enabled: String(localized: "Enabled")
} }
} }
var description: String { var description: String {
switch self { switch self {
case .disabled: "VPN will not connect automatically." case .disabled: String(localized: "VPN will not connect automatically.")
case .alwaysOn: "Automatically connect VPN on any network." case .alwaysOn: String(localized: "Automatically connect VPN on any network.")
case .enabled: "Automatically connect or disconnect VPN based on rules." case .enabled: String(localized: "Automatically connect or disconnect VPN based on rules.")
} }
} }
} }
+30
View File
@@ -287,6 +287,26 @@
} }
} }
}, },
"Automatically connect or disconnect VPN based on rules." : {
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "根据规则自动连接或断开 VPN 连接。"
}
}
}
},
"Automatically connect VPN on any network." : {
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "在任何网络上自动连接 VPN。"
}
}
}
},
"Browse" : { "Browse" : {
"localizations" : { "localizations" : {
"zh-Hans" : { "zh-Hans" : {
@@ -2798,6 +2818,16 @@
} }
} }
}, },
"VPN will not connect automatically." : {
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "VPN 不会自动连接。"
}
}
}
},
"What is QRS" : { "What is QRS" : {
"localizations" : { "localizations" : {
"zh-Hans" : { "zh-Hans" : {