Returns the given locale's identifier.


func CFLocaleGetIdentifier(_ locale: CFLocale!) -> CFLocaleIdentifier!



The locale object to examine.

Return Value

A string representation of locale’s identifier. This may not be the same string that was used to create the locale—it may be canonicalized. Ownership follows the The Get Rule.

See Also

Getting Information About a Locale

func CFLocaleGetValue(CFLocale!, CFLocaleKey!) -> CFTypeRef!

Returns the corresponding value for the given key of a locale’s key-value pair.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software