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

    name

    The original file name

    Required

    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

    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

     

    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>