Hey, I'm using String Catalogs in a bit different way:
I have a swift class with strings:
static let ok = LocalizedStringResource("Ok", table: "General")
Then I'm using It like:
Text(String(localized:ok))
So all my SwiftUI view will use a lot such strings keys.
Now I Xcode Preview I can easily change language by just manage scheme, app language -> de for example.
And so all strings will update.. in any Preview.
Hey, I'm using String Catalogs in a bit different way: I have a swift class with strings:
static let ok = LocalizedStringResource("Ok", table: "General")
Then I'm using It like:
Text(String(localized:ok))
So all my SwiftUI view will use a lot such strings keys. Now I Xcode Preview I can easily change language by just manage scheme, app language -> de for example. And so all strings will update.. in any Preview.