Use the Google language API to translate your entire website

Source: Internet
Author: User

---restore content starts---


Using the Google Language API for the translation of your entire site, we can use the free Google API to do the processing for multi-lingual functions.
Put in an HTML file <div id= "Google_translate_element" ></div>
<script> function Googletranslateelementinit () { new google.translate.TranslateElement ({ Pagelanguage: ' en ', includedlanguages: ' En,zh-cn,hr,cs,da,nl,fr,de,el,iw,hu,ga,it,ja,ko,pt,ro,ru,sr,es,th,vi ', autodisplay:false, gatrack:true, gaId: ' ua-4334041-9 ', layout: Google.translate.TranslateElement.InlineLayout.SIMPLE }, ' google_translate_element '); } </script>

<script src= "Http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" ></ Script>

---restore content ends---


Using the Google Language API for the translation of your entire site, we can use the free Google API to do the processing for multi-lingual functions.
Put in an HTML file <div id= "Google_translate_element" ></div>
<script> function Googletranslateelementinit () { new google.translate.TranslateElement ({ Pagelanguage: ' en ', includedlanguages: ' En,zh-cn,hr,cs,da,nl,fr,de,el,iw,hu,ga,it,ja,ko,pt,ro,ru,sr,es,th,vi ', autodisplay:false, gatrack:true, gaId: ' ua-4334041-9 ', layout: Google.translate.TranslateElement.InlineLayout.SIMPLE }, ' google_translate_element '); } </script>

<script src= "Http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" ></ Script>

Use the Google language API to translate your entire website

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.