From 17c4acdb7ce40a010600a82da8388536cbdf83ca Mon Sep 17 00:00:00 2001 From: Lixeas <44436514+Lixeas@users.noreply.github.com> Date: Fri, 25 Sep 2026 10:24:11 +0200 Subject: [PATCH] fix: localize the Settings window title Window("Reglages", id: "settings") was a hardcoded literal, never routed through Strings when the EN/FR toggle was added -- title stayed "Reglages" regardless of the selected language. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Vag2FZvTekVg34kUeb791Q --- NotchWatch/Localization.swift | 4 ++++ NotchWatch/NotchWatchApp.swift | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NotchWatch/Localization.swift b/NotchWatch/Localization.swift index 143bfed..4bca34d 100644 --- a/NotchWatch/Localization.swift +++ b/NotchWatch/Localization.swift @@ -97,6 +97,10 @@ enum Strings { l == .en ? "Language" : "Langue" } + static func settingsWindowTitle(_ l: AppLanguage) -> String { + l == .en ? "Settings" : "Reglages" + } + static func versionLabel(_ version: String, _ l: AppLanguage) -> String { "NotchWatch \u{2022} version \(version)" } diff --git a/NotchWatch/NotchWatchApp.swift b/NotchWatch/NotchWatchApp.swift index f62ae95..9164acc 100644 --- a/NotchWatch/NotchWatchApp.swift +++ b/NotchWatch/NotchWatchApp.swift @@ -100,7 +100,7 @@ struct NotchWatchApp: App { } .menuBarExtraStyle(.window) - Window("Reglages", id: "settings") { + Window(Strings.settingsWindowTitle(languageManager.language), id: "settings") { SettingsView() .environmentObject(tracker) }