NavigationTitle does not change when the app language changes. It works well in iOS 17.5 but does not in iOS 18.x
Thanks for providing the project. I now see the issue.
Given that the issue happens only on iOS 18.x and not on iOS 17.5, I’d firstly suggest that you file a feedback report to see what the SwiftUI folks have to say – If you do so, please share your report ID here.
I didn't reproduce the issue with my own project because I changed the language by changing the system (Settings > General > Language & Region) or per-app (Settings > Apps > My app > Language) language setting, which is different from changing the SwiftUI locale environment from within the app, as demonstrated in your project.
Changing the system or per-app language setting is the standard way of changing an app's language, and it works for your app as well – If you change the setting, you will see that the language of your app's navigation title follows.
If your intent is to provide an in-app language switcher that allows users to change the language without leaving your app, you might want to evaluate it carefully, because changing SwiftUI locale
environment only impacts the SwiftUI view hierarchy, and not the system-provided components.
As an example, if your app needs to bring up a file importer using .fileImporter, the importer UI won't honor the locale
environment. That will lead to UI language inconsistency, and is is definitely not a good experience.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.