language
Credits: 0.01
Basic text translation
contentstring
The contents to be translated
formatstring
The string format, `text` or `html`
modelstring
The model to use for translation, `nmt` or `base`, See https://cloud.google.com/translate/docs/advanced/translating-text-v3#comparing-models for more information
sourcestring
Source language, format in ISO-639-1 codes See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for more information
targetstring
Target language, format in ISO-639-1 codes See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for more information
translationobject
The translated text
Request
Response
{
"translation": {
"text": "Bonjour",
"source": "und",
"model": "nmt"
}
}