Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

google translate for website html code

<!DOCTYPE html>
<html lang="en-US">
<body>
<h1>Translate sample page</h1>
<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="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</body>
</html>
 
PREVIOUS NEXT
Tagged: #google #translate #website #html #code
ADD COMMENT
Topic
Name
4+6 =