Get machine translation suggestions
POST/v2/projects/:projectId/suggest/machine-translations
Suggests machine translations from enabled services
Request
Path Parameters
- application/json
Body
required
Key Id to get results for. Use when key is stored already.
Text value of base translation. Useful, when base translation is not stored yet.
Whether base text is plural. This value is ignored if baseText is null.
Possible values: [GOOGLE
, AWS
, DEEPL
, AZURE
, BAIDU
, TOLGEE
]
List of services to use. If null, then all enabled services are used.
Responses
- 200
- 400
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
machineTranslations objectdeprecated
String translations provided by enabled services. (deprecated, use result
instead)
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.
If true, the base translation was empty and no translation was provided.
{
"result": {
"GOOGLE": {
"output": "This was translated by Google",
"contextDescription": null
},
"TOLGEE": {
"output": "This was translated by Tolgee Translator",
"contextDescription": "This is an example in swagger"
}
},
"baseBlank": true
}
Bad Request
- */*
- Schema
Schema
string
Unauthorized
- */*
- Schema
Schema
string
Forbidden
- */*
- Schema
Schema
string
Not Found
- */*
- Schema
Schema
string