From 1957325d8ab999ffa55ac78d635d36b14992ed57 Mon Sep 17 00:00:00 2001 From: zhukang <274546966@qq.com> Date: Wed, 11 Mar 2026 20:13:55 +0800 Subject: [PATCH] fix: sidebar not refreshing translations on language switch Bind sidebar List identity to appLanguage so SwiftUI rebuilds route titles and subtitles when the user switches language. --- Apps/AtlasApp/Sources/AtlasApp/AppShellView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Apps/AtlasApp/Sources/AtlasApp/AppShellView.swift b/Apps/AtlasApp/Sources/AtlasApp/AppShellView.swift index 15ce28c..66853f9 100644 --- a/Apps/AtlasApp/Sources/AtlasApp/AppShellView.swift +++ b/Apps/AtlasApp/Sources/AtlasApp/AppShellView.swift @@ -31,6 +31,7 @@ struct AppShellView: View { .tag(AtlasRoute.about) } } + .id(model.appLanguage) .navigationTitle(AtlasL10n.string("app.name")) .navigationSplitViewColumnWidth(min: AtlasLayout.sidebarMinWidth, ideal: AtlasLayout.sidebarIdealWidth) .listStyle(.sidebar)