Search code examples
c#windows-8windows-runtime

How to get actual language in a WinRT app?


Is it possible to get the actual language of the OS like on Windows Phone? I'm using CultureInfo.CurrentCulture.TwoLetterIsoString, but I recieve always en and not the right language, which is de in my case.

So how can I get the actual language in a WinRT app?


Solution

  • You can use

    Windows.Globalization.Language.CurrentInputMethodLanguageTag
    

    to get the actual language. It returns for example de-DE, if you are using a german verison of Windows 8.