Instant-translate is translate5 api interface which can be used for translating text and files using the translate5 language resources (term collections, translation memories or machine translation engines).
Available language resource for instant translate are the assigned resources of a customers of the current logged-in user.
For translating files, the file-extension must be configured accordingly.
URL: | /editor/instanttranslateapi |
Available Methods: | GET |
Specialities: | To be able to search for a text, there must be available language resources assigned to a customers of a user |
Availability: | - |
Name | Type | Info |
text | string | The string to translate. |
source | string | The source language to translate from. Must be valid rfc5646 code. |
target | string | The target language to translate to. Must be valid rfc5646 code. |
URL: | /editor/instanttranslateapi/file |
Available Methods: | POST |
Specialities: | Translate complete file from one language to another. |
Availability: | Currently this option is only available with SdlLanguage Cloud service. To be able to use the sdl cloud resource, and valid api key and api url need to be configured. Mandatory configurations (Zf_configuration table):
|
Name | Type | Info |
file | multipart/form-data | The string to translate. |
source | string | The source language to translate from. Must be valid rfc5646 code. When no domainCode is provided this is mandatory. |
target | string | The target language to translate to. Must be valid rfc5646 code. When no domanCode is provided this is mandatory. |
domainCode | string | Unique sdl language cloud engine id(domainCode). |
Response layout:
"fileId":"5bc89c96a901be0001cca190"
|
|
URL: | /editor/instanttranslateapi/url |
Available Methods: | GET |
Specialities: | Get the download url for the translation file |
Availability: | - |
Name | Type | Info |
fileId | string | Unique id of the file for translation. |
Response layout:
"downloadUrl":"https://www.lc-api.sdl.com/file-translations/5bc89c96a901be0001cca190/translated-file"
|
|
runtimeOptions.LanguageResources.searchCharacterLimit | map | Maximum character per language resource allowed for search. The configuration key is the language resource id, and the value is the character limit. Ex: {{"1": 100},{"2": 300}} |