Add localization support

Co-authored-by: Xiang <xfqz86@163.com>
This commit is contained in:
世界
2024-12-15 21:36:07 +08:00
co-authored by Xiang
parent ba6f99bc34
commit ef08a1052b
24 changed files with 1794 additions and 103 deletions
@@ -32,19 +32,19 @@ public extension NavigationPage {
var title: String {
switch self {
case .dashboard:
return NSLocalizedString("Dashboard", comment: "")
return String(localized: "Dashboard")
#if os(macOS)
case .groups:
return NSLocalizedString("Groups", comment: "")
return String(localized: "Groups")
case .connections:
return NSLocalizedString("Connections", comment: "")
#endif
case .logs:
return NSLocalizedString("Logs", comment: "")
return String(localized: "Logs")
case .profiles:
return NSLocalizedString("Profiles", comment: "")
return String(localized: "Profiles")
case .settings:
return NSLocalizedString("Settings", comment: "")
return String(localized: "Settings")
}
}