How can I optimize multilingual string translations in SwiftUI for App Store apps using Localization APIs?

Hi team,

I’m developing an iOS app that helps manage and translate multilingual content .

The app uses SwiftUI with Localizable.strings and Bundle.localizedString(forKey:). I’m trying to optimize for dynamic language switching inside the app without restarting.

I’ve tested various methods like:

Text(NSLocalizedString("welcome_text", comment: ""))

and some approaches using @Environment(.locale), but the system doesn’t always update views instantly when language changes.

Question: What’s the recommended approach (or WWDC reference) for real-time language change handling in SwiftUI apps targeting iOS 18+?

It seems that this topic was discussed here. You might take a look, and feel free to follow up if that doesn't help.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

How can I optimize multilingual string translations in SwiftUI for App Store apps using Localization APIs?
 
 
Q