Parameter List
The text to translate. For example: "Hello world!"
.
Source language ISO 639-1 code. For example: "en"
. If not provided, Google auto-detects the language.
Target language ISO 639-1 code. For example: "fr"
or "en"
(default).
Boolean indicating whether or not to return additional information for the translation. Choose either:
TRUE
to get the translation only (default)FALSE
to get additional information
The format of the source text. Choose either:
"text"
for plain-text (default)"html"
for HTML
The translation model. Choose either:
"base"
for the Phrase-Based Machine Translation (PBMT) model"nmt"
for the Neural Machine Translation (NMT) model (default)
Please see the list of supported codes in Google's Translation API documentation.