Instance Property

localizedInfoDictionary

A dictionary with the keys from the bundle’s localized property list.

Declaration

var localizedInfoDictionary: [String : Any]? { get }

Discussion

This property uses the preferred localization for the current user when determining which resources to include. If the preferred localization is not available, this property chooses the most appropriate localization found in the bundle.

See Also

Getting Localization Information

var localizations: [String]

A list of all the localizations contained in the bundle.

var preferredLocalizations: [String]

An ordered list of preferred localizations contained in the bundle.

var developmentLocalization: String?

The localization for the development language.

class func preferredLocalizations(from: [String])

Returns one or more localizations from the specified list that a bundle object would use to locate resources for the current user.

class func preferredLocalizations(from: [String], forPreferences: [String]?)

Returns locale identifiers for which a bundle would provide localized content, given a specified list of candidates for a user's language preferences.