I have to let the user to choose the language of the app from a list.
Putting the next line in the SceneDelegate works fine because it loads the specified language at the beginning:
window.rootViewController = UIHostingController(rootView: ContentView().environment(\.locale, .init(identifier: "de")))
but I don't know how to set the locale from the view that contain the list to switch the language in the whole app.
Thanks for any help