How to add google Translate in my website

<!DOCTYPE html>
<html lang="en-US">

<head>

</head>

<body>

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

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

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

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

</html>

 

Leave a Reply

Your email address will not be published. Required fields are marked *