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
    keyId int64

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

    targetLanguageId int64required
    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.

    services string[]

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

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

    plural boolean

Responses

OK

Schema
    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.

    output stringrequired
    contextDescription string
    baseBlank booleanrequired

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

Loading...