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


func CFLocaleGetValue(_ locale: CFLocale!, _ key: CFLocaleKey!) -> CFTypeRef!



The locale object to examine.


The key for which to obtain the corresponding value. Possible values are described in Locale Property Keys.

Return Value

The value corresponding to the given key in locale. The value may be any type of CFType object. Ownership follows the The Get Rule.


Locale objects use key-value pairs to store property values. Use this function to get the value of a specific property.

See Also

Getting Information About a Locale

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