Gets or sets the BCP-47 language tag of the app's preferred language.
Syntax
var primaryLanguageOverride = Windows.Globalization.ApplicationLanguages.primaryLanguageOverride;
Windows.Globalization.ApplicationLanguages.primaryLanguageOverride = primaryLanguageOverride;
Property value
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]
The value of the top-ranked language in the user's ranked list of preferred languages (ApplicationLanguages.Languages). The app can set it to override the top language of the list.
Remarks
This change may not take effect immediately. You can listen to the QualifierValues property on the ResourceManager's DefaultContext.
Note If your app passes language tags from this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012