Specifies locale identifier.
SDKs
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
static let identifier: CFLocale Key!
Discussion
The corresponding value is a CFString containing the POSIX locale identifier as used by ICU, such as “ja
”. If you have a variant locale or a different currency or calendar, it can be as complex as “en
” or “az
”.