Contents

availableLocaleIdentifiers

The list of locale identifiers available on the system.

Declaration

class var availableLocaleIdentifiers: [String] { get }

Discussion

A locale identifier starts with a language code, often includes a region code, and occasionally includes a script designator. See Locale IDs for more information about the structure of a locale identifier.

Use localizedString(forLocaleIdentifier:) to obtain a human readable description of any of the locale identifiers in this list.

See Also

Related Documentation

  • Internationalization and Localization Guide

Getting Known Identifiers and Codes