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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user