Skip to main content

Get machine translation suggestions

POST 

/v2/projects/:projectId/suggest/machine-translations

Suggests machine translations from enabled services

Request

Path Parameters

    projectId int64required

Body

required
    baseText string

    Text value of base translation. Useful, when base translation is not stored yet.

    isPlural boolean

    Whether base text is plural. This value is ignored if baseText is null.

    keyId int64

    Key Id to get results for. Use when key is stored already.

    plural boolean
    services string[]

    Possible values: [GOOGLE, AWS, DEEPL, AZURE, BAIDU, TOLGEE]

    List of services to use. If null, then all enabled services are used.

    targetLanguageId int64required

Responses

OK

Schema
    baseBlank booleanrequired

    If true, the base translation was empty and no translation was provided.

    machineTranslations objectdeprecated

    String translations provided by enabled services. (deprecated, use result instead)

    property name* stringdeprecated

    String translations provided by enabled services. (deprecated, use result instead)

    result object

    Results provided by enabled services.

    property name* TranslationItemModel

    Results provided by enabled services.

    contextDescription string
    output stringrequired
Loading...