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.

Dd576290.clear(en-us,MSDN.10).gif Syntax

C#

   string[] GetLanguages(appId, locale);
   

Dd576290.clear(en-us,MSDN.10).gif 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.

Dd576290.clear(en-us,MSDN.10).gif Return Value

A string array containing languages names supported by the Translator Service, localized into the requested language.

Dd576290.clear(en-us,MSDN.10).gif Example

C#

    TranslatorService.LanguageServiceClient client = new TranslatorService.LanguageServiceClient();
    string[] languageNames = client.GetLanguageNames("myAppId", "de");
    
    foreach (string s in languageNames) 
    { 
        Console.WriteLine(s); 
    }