Type Method


Returns the code for the user’s current locale.


+ (NSString *)currentLanguageCode;

Return Value

An NSString object containing the BCP 47 language and locale code for the user’s current locale.


This code reflects the user’s language and region preferences as selected in the Settings app.

See Also

Working with Language Codes


A BCP 47 code identifying the voice’s language and 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