The response message for language detection.
JSON representation |
---|
{
"languages": [
{
object ( |
Fields | |
---|---|
languages[] |
The most probable language detected by the Translation API. For each request, the Translation API will always return only one result. |
DetectedLanguage
The response message for language detection.
JSON representation |
---|
{ "language_code": string, "confidence": number } |
Fields | |
---|---|
language_code |
The BCP-47 language code of source content in the request, detected automatically. |
confidence |
The confidence of the detection result for this language. |