add_translation
Add a translation to your memory by specifying source and target languages, the sentence and its translation. Optionally include context sentences to improve future translation accuracy.
Instructions
Adds a translation to a translation memory in your Lara Translate account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID or list of IDs where to save the translation unit. Format: mem_xyz123 | |
| source | Yes | The source language code of the sentence, it MUST be a language supported by the system, use the list_languages tool to get a list of all the supported languages | |
| target | Yes | The target language code of the translation, it MUST be a language supported by the system, use the list_languages tool to get a list of all the supported languages | |
| sentence | Yes | The source sentence | |
| translation | Yes | The translated sentence | |
| tuid | No | Translation Unit unique identifier | |
| sentence_before | No | The sentence before the source sentence to specify the context of the translation unit | |
| sentence_after | No | The sentence after the source sentence to specify the context of the translation unit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Import job identifier | |
| begin | No | Begin offset of the import | |
| end | No | End offset of the import | |
| channel | No | Channel identifier used by the import | |
| size | No | Total number of units in the import | |
| progress | No | Import progress between 0 and 1 (1 means complete) |