Skip to content

Instantly share code, notes, and snippets.

@bonifacemwanza
Created February 14, 2023 14:10
Show Gist options
  • Save bonifacemwanza/95966a04359edd7014125da4e1b5b574 to your computer and use it in GitHub Desktop.
Save bonifacemwanza/95966a04359edd7014125da4e1b5b574 to your computer and use it in GitHub Desktop.
<!-- add this to your header -->
<div id="google_translate_element"></div>
<!-- to your js part -->
<script src="script.js"></script>
<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>
@Irakozemasenge
Copy link

Vrt fonctionne bien il rester comment le costomiser

@ismail-is
Copy link

best

@ismail-is
Copy link

Vrt works well it remains how to costomise it

just me DM
or connect

@bonifacemwanza
Copy link
Author

Hi guys, am working on an npm package that will enable customization, and will also update further for on this script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment