Google used to have API for its translator, but they modified the terms of their service by saying, "These changes are being made due to the substantial economic burden caused by extensive abuse."

They have since made the API a paid service and restrict the allowance limit in translation one can make per day.

It would've been a lot easier to use API back then when it was free.