Contents

locale

The locale to use to look up the localized string from the string resource.

Declaration

var locale: Locale

Discussion

To perform localization in a different locale, change this value before passing it to a String or AttributedString initializer that takes a LocalizedStringResource.

See Also

Accessing resource properties