Method GetSupportedTranslatorLanguages
GetSupportedTranslatorLanguages(String)
Get all available languages to translate to with GetTranslatedText(String, String, String, List<String>)
Declaration
TranslatorLanguagesContract GetSupportedTranslatorLanguages(string connectionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
Returns
Type | Description |
---|---|
TranslatorLanguagesContract | All available languages to translate to with GetTranslatedText(String, String, String, List<String>). The languages are given in IETF BCP 47 language tags. |
Examples
POST http://YourServerName/InfoShare/Json/Common/GetSupportedTranslatorLanguages
Example for get supported translator languages{
"connectionId": "e90ce875-a784-4a24-924f-f4ba387521cf"
}
Response:
{
"GetSupportedTranslatorLanguagesResult": {
"TranslatorLanguages": [
"af",
"am",
"ar",
"as",
"az",
"ba",
"bg",
"bn",
"bo",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"dv",
"el",
"en",
"es",
"et",
"eu",
"fa",
"fi",
"fil",
"fj",
"fo",
"fr",
"fr-CA"
]
}
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Missing feature in server license {featureId} (10100) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | No translation service endpoint configured (10331) |
ServiceException | Translation service failed. Error code: {errorCode} Error message: {errorMessage} (10335) |