How to translate your web page easily with google translator ?
share

How to translate your web page easily with google translator ?

Google Translator doing good job to language issues now a days with various solution types.Google translaor provides you API to translate your web pages to any lanugage without hassle.This article going to teach you how to use google translator to your web page & make your visitors confortable with their familier languages.

Step 01 

Added following google translator API reference link to your web page.

<script type="text/javascript" src="//translate.google.com/translate_a/element.js?
cb=googleTranslateElementInit"></script>

Step 02

Then added this javascript in between head tags of your web page.

<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>

Step 03 

This will be you final Step of setting google translator to your web page.Copy & paste following code in you web page where you want to display translator option.Now you are all set to give translate option to your visitors.

<div id="google_translate_element"></div>

Now check out your web page will show down translation option like follows: 

Final Output Figure

Also google translator providing different layout design for these interfaces.you can refere to google translator api for further details.

https://cloud.google.com/translate/

Cheers! Enjoy Google Translator with your web site! 

share
Visitors : 29