Skip to main content

Create translations

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.


URL

(POST) projects/{projectid}/files/{locale}/file/translation

PARAMETERS

tokenid

The connection token

Required

nameThe original file nameRequired

projectid

The project id

Required

locale

The original file's source language

Required

targetlocale

The language of the translated file

Required

targetname

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.

Optional

targetEncoding

Do not set by default. Permits to customize the file encoding of the target file for certain document formats such as web pages.

Optional

targetFormat

Do not set by default. Permits to customize internal file format options depending on document format. Contact Wordbee for more information.

Optional

useSourceIfNoTranslationDo 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

 

RESULTS

The method executes asynchronously. It returns the id of the asynchronous operation or 0 if the operation has completed immediately:

XML
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2147483647</int>

 

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.