Add 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. Get started with our wizard below:
Step 4: Copy and paste this snippet of code into your webpage
<div id="google_translate_element"></div><script>function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>Background and approach