This method translates files using MT Hive
URL
(POST) /api/apps/mthive/translate/files
PARAMETERS
Parameters are included as a JSON object in the request body:
files | Mandatory. The files selected to be downloaded | object[], Mandatory |
src | The source language code. Make sure to only use source languages according to the configuration. | string, Mandatory |
trg | Mandatory. The target language code. Make sure to only use target languages according to the configuration. | string, Mandatory |
profileOptionIdx | The option index for the selected Mt Hive configuration (Zero based index) | int, Mandatory |
RESULTS
The method executes asynchronously. It returns the operation ID which is a number.
Example:
228991
You would then wait a few seconds and request a detailed operation status using https://wordbee.atlassian.net/wiki/spaces/API2/pages/491571. This will return the status. You need to poll the method and wait 2 to 5 seconds in between polls until the status is Finished or Failed. Please read this page for a detailed explanation: Asynchronous operation
{ "trm": { "requestid":32230, "status":"Waiting", "statusText":"Waiting..." } }
ERRORS
The api may return errors if:
- You are not subscribed to MT Hive or MT Hive is not configured
- The languages or option are not in the configuration. Note that this can also happen in the case of a language detection
- The text exceeds the maximum length