I know which languages the OS is available in from the MSDN documentation but I am looking for a way to retrieve this with code. InputLanguage.InstalledInputLanguages doesn’t seem to be available and I can’t find its equivalent.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am not aware of any API in Windows Phone that returns a list of installed/available languages. I did find out that switching to an unsupported CultureInfo on the current thread Current(UI)Culture throws an exception.
So it is possible to test a couple of cultures (I wouldn’t test them all, but you could test for the languages you support) in an ugly way.
That said, I do think you should NOT (be able to) change the language in your program because it will confuse the user. The user will expect to change the language himself.