Specifies the language-related preferences that the app can use and maintain.
var applicationLanguages = Windows.Globalization.ApplicationLanguages;
public static class ApplicationLanguages
Public NotInheritable Class ApplicationLanguages
public ref class ApplicationLanguages abstract sealed
- [ MarshalingBehavior(Agile)]
- [ Threading(Both)]
- [ Version(0x06020000)]
The ApplicationLanguages class has these types of members:
The ApplicationLanguages class has these properties.
|Read-only||Gets the ranked list of current runtime language values preferred by the user.|
|Read-only||Gets the app's declared list of supported languages.|
|Read/write||Gets or sets an override for the app's preferred language, expressed as a BCP-47 language tag. This setting is persisted.|
The languages referenced in this class are represented by BCP-47 language tags. Each of these is a language identifier and not a locale name, although the two structurally can be the same. As a language tag, "en-US" means American English (or the dialect of English spoken in the United States). It makes no claims about the actual location of the speakers (though many of them do reside in the US) and no other claims about conventions that are used in the US such as the measurement system or currency.
Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "en-US"
Starting in Windows 8.1: Language tags support the Unicode extensions "ca-" and "nu-". (See Unicode Key/Type Definitions.) Note that these extensions can affect the numeral system or calendar used by globalization objects.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8.1 [Windows Runtime apps only]|