The locale language code.
SDKs
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
The locale language code.
SDKs
Framework
static let identifier: NSLocale .Key
The locale identifier.
static let country Code: NSLocale .Key
The locale country code.
static let script Code: NSLocale .Key
The locale script code.
static let variant Code: NSLocale .Key
The locale variant code.
static let exemplar Character Set: NSLocale .Key
The exemplar character set for the locale.
static let calendar: NSLocale .Key
The calendar associated with the locale.
static let collation Identifier: NSLocale .Key
The collation associated with the locale.
static let collator Identifier: NSLocale .Key
The collation identifier for the locale.
static let uses Metric System: NSLocale .Key
A flag that indicates whether the locale uses the metric system.
static let measurement System: NSLocale .Key
The measurement system associated with the locale.
static let decimal Separator: NSLocale .Key
The decimal separator associated with the locale.
static let grouping Separator: NSLocale .Key
The numeric grouping separator associated with the locale.
static let currency Symbol: NSLocale .Key
The currency symbol associated with the locale.
static let currency Code: NSLocale .Key
The currency code associated with the locale.
static let quotation End Delimiter Key: NSLocale .Key
The end quotation symbol associated with the locale.
static let quotation Begin Delimiter Key: NSLocale .Key
The begin quotation symbol associated with the locale.
static let alternate Quotation End Delimiter Key: NSLocale .Key
The alternate end quotation symbol associated with the locale.
static let alternate Quotation Begin Delimiter Key: NSLocale .Key
The alternating begin quotation symbol associated with the locale.