That’s a normal part of Google Translate and I believe the word limit is something like 500 words.
If you routinely get something larger than that, I see a few options:
- Manually parse the content for blocks of text smaller than 500 words, (or, whatever the limit is).
- Make use of another Google API that does document translation, (I’m not sure, but I think they have one, you have to ask over there).
- Make use of a different site that does document translation and hope they expose API’s.
Don’t forget to tell us what worked.