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.