Many thanks Apple Engineer,
func localizedString(
is exactly what I needed and the fog is clearing :)
Reminder to myself:
func localizedString(_ resource: LocalizedStringResource, _ myLocale: String) -> String {
var locale: Locale {
Locale(identifier: myLocale)
}
var resource = resource
resource.locale = locale
return String(localized: resource)
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: