Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Translation Element

Can we use google translator js library for our website (translate.google.com/translate_a/element.js)

We are using Google translator javascript code on our website and it is working fine. We have some questions regarding this.
1) Is there any limit or it is free to use?
2) Does Google still support the javascript library?
3) Or if we use Google translate API, how do we translate a complete web page using Google Translate API's.
 
Following javascript code we are using on our website.

<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en'}, 'lia-body');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
1 2 6,265
2 REPLIES 2

I have the same question, can anyone reply?

Hi @Supriya1

Welcome and thank you for reaching out to our community.

The usage of the javascript library for simple webpage translation is indeed free but there are certain limitations to keep it that way, refer to this pricing and quota documentation for more information.

Feature Metered usage Price
Total usage for language detection and text translation by using the NMT model First 500,000 characters* per month

Free (applied as $10 credit every month)†

In terms of support, since there is continuous development with this technology, I believe Google Cloud team keeps support for the newer versions/ releases than the old ones due to compatibility concerns, they might still provide guidance but keep in mind that it may be limited.

Cloud Translation - Advanced supports all Cloud Translation - Basic features and models, but due to required changes to the client libraries is not backward compatible. Existing customers need to plan their migrations in order to benefit from Cloud Translation - Advanced features. In the Migrating to Advanced guide we provide guidance on key considerations for developing a migration plan.

Here are some useful resources regarding Google translate API:

I hope I was able to provide you with useful insights.

 

Top Labels in this Space
Top Solution Authors