Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This is preliminary documentation and is subject to change.]
Obtains a list of languages available for translation, with the language names are localized into a desired language.
Syntax
URI
https://api.microsofttranslator.com/V1/Http.svc/GetLanguageNames
Parameters
| Parameter | Description |
|---|---|
appId |
A string representing the identifier of the calling application. |
locale |
A string representing the language code to localize the language names. |
Return Value
A string array containing languages names supported by the Translator Service, localized into the requested language.
Example
C#
string languageUri = "https://api.microsofttranslator.com/V1/Http.svc/GetLanguageNames?appId=myAppId";
WebRequest req = System.Net.WebRequest.Create(languageUri);
WebResponse resp = req.GetResponse();
Stream strm = resp.GetResponseStream();
StreamReader reader = new System.IO.StreamReader(strm);
while (!reader.EndOfStream)
{
Console.WriteLine("Language found: " + reader.ReadLine());
}