Thomas
03/19/2024, 1:43 AMStringResource.desc().localized()
.
Is there a good way to obtain a string of a particular locale programmatically, without automatic locale resolution? Like perhaps a function that takes a NSLocale
object. Thanks.alex009
03/19/2024, 2:26 AMlet path = strinRes.bundle.path(forResource: languageCode, ofType: "lproj")
let bundle = Bundle(path: path!)
let result = NSLocalizedString(stringRes.resourceId , tableName: nil, bundle: bundle!, value: "", comment: "")
something like thisThomas
03/19/2024, 2:27 AM