[This is preliminary documentation and is subject to change.]

Get Supported Languages

Demo ASPXCode-Behind
Enter some text for the language you want detected:
Results
This demo builds upon the previous one where we used the Microsoft Translator SOAP API's Detect method to return the culture code of an input string. With the GetLanguages and GetLanguageNames methods we can make SOAP calls to return the full list of supported culture codes and language names.
In this demo we use the two methods to populate a static dictionary in which the culture codes are entered with their associated full language name. Now when the button is clicked and the Detect method covered previously is executed, we parse the detected culture code to the dictionary and are returned the name of the language to be used in our result.
Enter some text in the box above and click the 'Detect Language' button. The detected culture code as well as the language pulled from the dictionary will be displayed. Click the Code-Behind tab above to see exactly how this is done in C#.