This request acts the same as “Project > Create a New Project” request, but instead of manually specifying source-resources, all untranslated strings in the context are automatically wrapped as a source-resource.
One may also specify to use already-translated strings or specific phrases (see request parameters).
POST: /tm/context/<context_uuid>/translate
Request params
Parameters | Description |
---|---|
secret_key | |
public_key |
Response params
Parameters | Description |
---|---|
project_id | A unique ID of project created in One Hour Translation. |
wordcount | total word count of the newly project |
credits | total credit worth of the newly project |
Request Example
curl --request POST "https://www.onehourtranslation.com/api/2/tm/context/c-3d2f0d91bbdd/translate/english/to/arabic" --data "secret_key=<secret_key>&public_key=<public_key>"
Response Example
{
"status":
{
"code":0,
"msg":"ok"
},
"results":
{
"project_id":"1851",
"word_count":100,
"credits":700
},
"errors":[]
}