ApplicationLanguages.Languages Property

Definition

Gets a ranked list of current runtime language values preferred by the user.

public:
 static property IVectorView<Platform::String ^> ^ Languages { IVectorView<Platform::String ^> ^ get(); };
static IVectorView<winrt::hstring> Languages();
public static IReadOnlyList<string> Languages { get; }
var iVectorView = ApplicationLanguages.languages;
Public Shared ReadOnly Property Languages As IReadOnlyList(Of String)

Property Value

IVectorView<String>

IReadOnlyList<String>

IVectorView<Platform::String>

IVectorView<winrt::hstring>

A computed list of languages that merges the app's declared supported languages (ApplicationLanguages.ManifestLanguages) with the user's ranked list of preferred languages.

Remarks

At runtime, the list of languages for which your app has declared support (the app manifest language list) is compared with the list of languages for which the user has declared a preference (the user profile language list). The app runtime language list is set to this intersection (if the intersection is not empty), or to just the app's default language (if the intersection is empty). For more detail, see the App runtime language list section in Understand user profile languages and app manifest languages.

Note

This property returns the same values as the language list exposed by Windows.ApplicationModel.Resources.Core.ResourceManager.DefaultContext.Languages.

Applies to

See also