GetLanguageNames Method
[This is preliminary documentation and is subject to change.]
Obtains a list of languages available for translation, with the language names localized into a desired language.
Syntax
C#
string[] GetLanguages(appId, locale);
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#
TranslatorService.LanguageServiceClient client = new TranslatorService.LanguageServiceClient(); string[] languageNames = client.GetLanguageNames("myAppId", "de"); foreach (string s in languageNames) { Console.WriteLine(s); }