Skip to content

Instantly share code, notes, and snippets.

@louis-e
Created March 4, 2021 15:22
Show Gist options
  • Save louis-e/0cfa06c9582ed179239f72634bc37b7d to your computer and use it in GitHub Desktop.
Save louis-e/0cfa06c9582ed179239f72634bc37b7d to your computer and use it in GitHub Desktop.
Website Google Translation implementation
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment