Answered by:

How to get OS primary language and localize UI text acoordingly

Question

We need to add localization feature to our app to support at least English, German, and Chinese. First, we try to find out the primary language of users' system. In win32, we used GetThreadLocale, now in Metro, we use the method:

All replies

Start with
Globalizing your app . There are several quick starts which cover the topics in a more step-by-step fashion than the sample.

There is no direct equivalent to GetThreadLocale, and if you follow the recommended pattern you don't need it. If you use and provide resources as described the ResourceManager will automatically follow the user's chosen language. You don't need to explicitly
choose the language.

If you have specific questions about how to use the ResourceManager or about what specific parts of the Application resources and localization sample are confusing you then please provide details of what you need to know.