goodwhale / AspirinShot

Painless App Store screenshots with SwiftUI, in Xcode
Other
129 stars 2 forks source link

Will this work with LocalizedStringResource aka String Catalogs support? #5

Closed Volodymyr-13 closed 4 weeks ago

Volodymyr-13 commented 9 months ago

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.