Instance Property

preferredLocalizations

An ordered list of preferred localizations contained in the bundle.

Declaration

@property(readonly, copy) NSArray<NSString *> *preferredLocalizations;

Discussion

An array of NSString objects containing language IDs for localizations in the bundle. The strings are ordered according to the user's language preferences and available localizations.

See Also

Getting Localization Information

localizations

A list of all the localizations contained in the bundle.

developmentLocalization

The localization for the development language.

localizedInfoDictionary

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

+ preferredLocalizationsFromArray:

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

+ preferredLocalizationsFromArray:forPreferences:

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