Skip to content

Free, open-source macOS cleaner. CleanMyMac alternative with zero telemetry. Native SwiftUI, scheduled auto-cleaning, Xcode/Homebrew/system cache cleanup. MIT licensed.

fix(l10n): apply appearance name localization in MainWindow

Hebert Marchesie49162f971e4
diff --git a/PureMac/Views/MainWindow.swift b/PureMac/Views/MainWindow.swift
index b665728..f9d00b9 100644
--- a/PureMac/Views/MainWindow.swift
+++ b/PureMac/Views/MainWindow.swift
@@ -350,7 +350,7 @@ struct MainWindow: View {
Button {
theme.appearance = appearance
} label: {
- Label(appearance.label, systemImage: appearance.icon)
+ Label(LocalizedStringKey(appearance.label), systemImage: appearance.icon)
}
}
} label: {
@@ -366,7 +366,7 @@ struct MainWindow: View {
Spacer(minLength: 6)
- Text(theme.appearance.label)
+ Text(LocalizedStringKey(theme.appearance.label))
.font(.system(size: 10.5, weight: .medium))
.foregroundStyle(.secondary)
@@ -382,7 +382,7 @@ struct MainWindow: View {
.menuStyle(.borderlessButton)
.help("Change appearance")
.accessibilityLabel("Appearance")
- .accessibilityValue(theme.appearance.label)
+ .accessibilityValue(Text(LocalizedStringKey(theme.appearance.label)))
}
private var sidebarLabelColor: Color {