Enviroment: API: Google Cloud Translate V3, Text Size: 12 000 words
It's possible to translate words and short sentences by the translateText()
method, but when I run the whole text, I run into a 'Text is too long' error.
"message": "Text is too long.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 0,
"data": "type.googleapis.com\/google.rpc.BadRequest"
},
{
"@type": 0,
"data": [
{
"field": "contents",
"description": "The total codepoints in the request must be less than 30720, actual: 90005"
}
]
}
]
}