Created
September 17, 2020 05:27
-
-
Save Rameshwar-ghodke/fd8bbc5c8a4000507fafc63d6231d644 to your computer and use it in GitHub Desktop.
translate webpage by adding google script code in website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment