Add Google Translate to your website


Add Google’s website translator to your webpages, and offer instant access to automatic translation of the pages. Adding the website translator is quick and easy.

<div id=”google_translate_element”></div>

<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: ‘en’
}, ‘google_translate_element’);
}
</script>

<script src=”//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>

 

The script will appear as a drop down menu and you can do styling according to your preference.. Click here to view a live demo of its usage

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s