Returns the code for the user’s current locale.
- iOS 7.0+
- macOS 10.14+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 3.0+
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.
Working with Language Codes
A BCP 47 code identifying the voice’s language and locale.
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