From 7f72b8e496edc3f14ced6ba5539fc24ac81d56db Mon Sep 17 00:00:00 2001 From: Felipe Giacomini Cocco Date: Thu, 5 Feb 2026 17:52:09 -0300 Subject: [PATCH] Fix strings detections and translates the entire "Battery" section --- DynamicIsland/components/Settings/SettingsView.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DynamicIsland/components/Settings/SettingsView.swift b/DynamicIsland/components/Settings/SettingsView.swift index 93b42dc..7c4b7b1 100644 --- a/DynamicIsland/components/Settings/SettingsView.swift +++ b/DynamicIsland/components/Settings/SettingsView.swift @@ -1762,19 +1762,19 @@ struct Charge: View { Form { if BatteryActivityManager.shared.hasBattery() { Section { - Defaults.Toggle("Show battery indicator", key: .showBatteryIndicator) + Defaults.Toggle(String(localized: "Show battery indicator"), key: .showBatteryIndicator) .settingsHighlight(id: highlightID("Show battery indicator")) - Defaults.Toggle("Show power status notifications", key: .showPowerStatusNotifications) + Defaults.Toggle(String(localized: "Show power status notifications"), key: .showPowerStatusNotifications) .settingsHighlight(id: highlightID("Show power status notifications")) - Defaults.Toggle("Play low battery alert sound", key: .playLowBatteryAlertSound) + Defaults.Toggle(String(localized: "Play low battery alert sound"), key: .playLowBatteryAlertSound) .settingsHighlight(id: highlightID("Play low battery alert sound")) } header: { Text("General") } Section { - Defaults.Toggle("Show battery percentage", key: .showBatteryPercentage) + Defaults.Toggle(String(localized: "Show battery percentage"), key: .showBatteryPercentage) .settingsHighlight(id: highlightID("Show battery percentage")) - Defaults.Toggle("Show power status icons", key: .showPowerStatusIcons) + Defaults.Toggle(String(localized: "Show power status icons"), key: .showPowerStatusIcons) .settingsHighlight(id: highlightID("Show power status icons")) } header: { Text("Battery Information")