Google Translate How to Create Code for Web Pages
When doing a multi-language sites have to do a lot of things, but if you insert the code to automatically translate documents into languages all over the world, but not very precise but also very interesting, it can switch to other languages mildly.
This is the page I made and how this applies to the site http://hoangquanfoods.com.vn
The way is very simple, you just insert the code where you want to insert and then insert a few lines of css as you want, here’s the code to insert
<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>
</div>