Class ISN_NSLocale
Information about linguistic, cultural, and technological conventions for use in formatting data for presentation.
Inheritance
Inherited Members
Namespace: SA.iOS.Foundation
Assembly: cs.temp.dll.dll
Syntax
public class ISN_NSLocale
Properties
AutoUpdatingCurrentLocale
A locale representing the user's region settings at the time the property is read.
The locale is formed from the settings for the current user’s chosen system locale overlaid with any custom settings the user has specified.
Use this property when you want a locale that always reflects the latest configuration settings. When the user changes settings, a locale instance obtained from this property alters its behavior to match. If you need to rely on a locale that does not change, use the locale given by the CurrentLocale property instead.
Declaration
public static ISN_NSLocale AutoUpdatingCurrentLocale { get; }
Property Value
Type | Description |
---|---|
ISN_NSLocale | The current locale. |
CountryCode
The country code for the locale. Examples of country codes include "GB", "FR", and "HK".
Declaration
public string CountryCode { get; }
Property Value
Type | Description |
---|---|
System.String |
CurrencyCode
The currency code for the locale. Example currency codes include "USD", "EUR", and "JPY".
Declaration
public string CurrencyCode { get; }
Property Value
Type | Description |
---|---|
System.String |
CurrencySymbol
The currency symbol for the locale. Example currency symbols include "$", "€", and "¥".
Declaration
public string CurrencySymbol { get; }
Property Value
Type | Description |
---|---|
System.String |
CurrentLocale
A locale representing the user's region settings at the time the property is read.
The locale is formed from the settings for the current user’s chosen system locale overlaid with any custom settings the user has specified.
Use this property when you need to rely on a consistent locale. A locale instance obtained this way does not change even when the user changes region settings. If you want a locale instance that always reflects the current configuration, use the one provided by the AutoUpdatingCurrentLocale property instead.
Declaration
public static ISN_NSLocale CurrentLocale { get; }
Property Value
Type | Description |
---|---|
ISN_NSLocale | The current locale. |
Identifier
The identifier for the locale.
Declaration
public string Identifier { get; }
Property Value
Type | Description |
---|---|
System.String |
LanguageCode
The language code for the locale. Examples of language codes include "en", "es", and "zh".
Declaration
public string LanguageCode { get; }
Property Value
Type | Description |
---|---|
System.String |
PreferredLanguage
Users choose a primary language when configuring a device, as described in https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/SpecifyingPreferences/SpecifyingPreferences.html#//apple_ref/doc/uid/10000171i-CH12 Reviewing Language and Region Settings. They may also specify one or more secondary languages in order of preference for use when localization is unavailable in a higher priority language. Use this property to obtain the current user's language. For more information about language localization in your app, see https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html#//apple_ref/doc/uid/10000171i-CH15 Language and Locale IDs.
Declaration
public static string PreferredLanguage { get; }
Property Value
Type | Description |
---|---|
System.String |