Add google translate html code

·

<!DOCTYPE html>
<html lang=”en-US”>
<body>

<h1>My Web Page</h1>

<p>Hello everybody!</p>

<p>Translate this page:</p>

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

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

//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit

<p>You can translate the content of this page by selecting a language in the select box.</p>

</body>
</html>

Leave a comment

Get updates

From art exploration to the latest archeological findings, all here in our weekly newsletter.

Subscribe

Design a site like this with WordPress.com
Get started