# NSLocale class documentation

Generated at 2025-09-10 09:16:48 +0000
2010 Free Software Foundation, Inc.
Software documentation for the NSLocale class
Foundation/NSLocale.h
NSCoding
NSCopying
Provides information describing language, date and time, and currency information.
ISOCountryCodes
Returns an array of NSString representing all known country codes.
ISOCurrencyCodes
Returns an array of NSString representing all known currency codes.
ISOLanguageCodes
Returns an array of NSString representing all known language codes.
autoupdatingCurrentLocale
Returns a version of the current locale which automatically updates when locale settngs are changed.
availableLocaleIdentifiers
Returns an array of NSStrings with all the available locale identifiers.
canonicalLanguageIdentifierFromString:
string
Returns the caoninical identifier for a language represented by the supplied string.
canonicalLocaleIdentifierFromString:
string
Returns the canonical identifier for a locale represented by the supplied string.
characterDirectionForLanguage:
isoLangCode
Returns the direction in which the language is written.
commonISOCurrencyCodes
Returns a list of available ISO currency code strings.
componentsFromLocaleIdentifier:
string
Parses the supplied locale identifier and returns a dictionary containing its components.
Components are NSLocaleLanguageCode, NSLocaleCountryCode, NSLocaleCalendar.
currentLocale
Returns the current locale information.
lineDirectionForLanguage:
isoLangCode
Returns the direction in which lines of text in the specified language are written.
localeIdentifierFromComponents:
dict
Builds and returns a locale idntifier from the individual components supplied in dict.
Components are NSLocaleLanguageCode, NSLocaleCountryCode, NSLocaleCalendar.
localeIdentifierFromWindowsLocaleCode:
lcid
Returns the standard locale identifier for the windows locale code.
localeWithLocaleIdentifier:
string
Returns a locale initialised with the given locale identifier.
preferredLanguages
Returns an array of preferred languages. Sorted from most preferred to leave preferred.
systemLocale
Returns the the system locale.
windowsLocaleCodeFromLocaleIdentifier:
localeIdentifier
Returns the windows locale code corresponding to the staqndard locale identifier.
collationIdentifier
Description forthcoming.
collatorIdentifier
Description forthcoming.
countryCode
Description forthcoming.
displayNameForKey:
key
value:
value
Returns the localised representation of the supplied value converted on the basis that it represents information whose type is specified by the key.
exemplarCharacterSet
Description forthcoming.
initWithLocaleIdentifier:
string
Initialises the receiver to be the locale specified by the identifier. This may result in replacement of the receiver by an existing locale.
languageCode
Description forthcoming.
localeIdentifier
Returns the canonical identifier for the receiver (which may differ from the identifgier used to create the receiver since different identifiers may map to the same locale).
objectForKey:
key
Returns the named object from the receiver locale.
scriptCode
Description forthcoming.
variantCode
Description forthcoming.