The method below permits to create the translated file from the online translations.The translated file is stored to the document library and inside the folder of the chosen target language.
By default the path/name of the translation is that of the original file.
Create translated file
Creates the translated file from the online translations and stores the file to the project library.
The connection token
|name||The original file name||Required|
The project id
The original file's source language
The language of the translated file
If empty then the translated document will be saved with the same path/name as the original document (default behavior). Otherwise specify a target path/name. The file extension must match that of the original document.
Do not set by default. Permits to customize the file encoding of the target file for certain document formats such as web pages.
Do not set by default. Permits to customize internal file format options depending on document format. Contact Wordbee for more information.
|useSourceIfNoTranslation||Do not set by default. If empty or set to true, the not translated segments will be populated with source segments (default behavior). Set to false to leave the not translated segments empty.||Optional|
The method executes asynchronously. It returns the id of the asynchronous operation or 0 if the operation has completed immediately: