Type Property

preferredLanguages

An ordered list of the user's preferred languages.

Declaration

class var preferredLanguages: [String] { get }

Discussion

Users choose a primary language when configuring a device, as described in Reviewing Language and Region Settings. They may also specify one or more secondary languages in order of preference for use when localization is unavailable in a higher priority language. Use this property to obtain the current user's ordered list of languages, presented as an array of locale identifier strings.

For more information about language localization in your app, see Language and Locale IDs.

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