Skip to content

Type Property

preferredLanguages

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
A list of the user’s preferred languages.
static var preferredLanguages: [String] { get }

Discussion

Returns a list of the user’s preferred languages, as specified in Language & Region settings, taking into account any per-app language overrides.

Note

Bundle is responsible for determining the language that your application will run in, based on the result of this API and combined with the languages your application supports.

See Also

Bundle.preferredLocalizations(from:)

See Also

Bundle.preferredLocalizations(from:forPreferences:)

See Also

Locale.preferredLocales