I am working in Angular-12. In our system, we are using "Google Translate" API.
So when we try to translate strings in bulk, then API returns the error
{
"error": {
"code": 400,
"message": "Too many text segments",
"errors": [
{
"message": "Too many text segments",
"domain": "global",
"reason": "invalid"
}
]
}
}
This is the type of data we are sending in API,
API which we are using https://translation.googleapis.com/language/translate/v2?key=Alza.......
{
"source":"en",
"target":"es",
"q":["string1", "string1",......]
}
Any kind of help is appritiable, thank you.