...
- Specify a source and target language.
- Include the text to translate
URL
(POST) /api/apps/mthive/translate/sync
...
src | The source language code. If the language was not specified, then this is the estimated source language. | string |
srct | The source language name. If the language was not specified, then this is the estimated source language. | string |
trg | The target language code. | string |
translation | The translated text | string |
segs | The total number of text segments, words and characters in the source text. This is information you would typically display to the user. | int |
wordsMT wordsTM100 wordsTM110 wordsTMFuzzy | Gives advanced information on how the translation was done. Translation combines machine translation and translation memory techniques. "wordsMT" is the total words translated by machine. "wordsTM100" are the words translated from memories at identical match rate. "wordsTM110" are the words translated from memories within context. "wordsTMFuzzy" are the words translated from memories but at below identical match rate. This information should be displayed to the user as it gives an idea of the quality of the translation: The lower the percentage of machine translation, the higher the quality. Example: Note: "Using translation memories" is the sum of: wordsTM100 + wordsTM110 + wordsTMFuzzy | int int int int |
...
ERRORS
The api may return errors if:
...
EXAMPLES
Translation result:
Code Block |
---|
{ "src": "fr", "srct": "French", "trg": "en", "translation": "This is a sample translation. It includes machine translated text.", "segs": 2, "words": 10, "chars": 57, "wordsMT": 5, "wordsTM100": 5, "wordsTM110": 0, "wordsTMFuzzy": 0 } |
...