Skip to content

Type MethodFoundationEssentials

windowsLocaleCode(fromIdentifier:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Returns the Windows locale code from a given identifier, or nil if it could not be converted.
static func windowsLocaleCode(fromIdentifier identifier: String) -> Int?