Skip to content

Commit

Permalink
Merge pull request #2834 from Sourabh782/translate
Browse files Browse the repository at this point in the history
bug fix in google translate
  • Loading branch information
huamanraj authored Aug 10, 2024
2 parents 2d9ae37 + bccdbaa commit 1dd32a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@
width: 300px;
border-radius: 10px;
position: relative;
margin-left: 1160px;
margin-left: 75vw;
/* margin-right: 0px; */
}

Expand Down Expand Up @@ -1172,14 +1172,17 @@
<div id="google_translate_element"></div>
</div>
</div>

<script type="text/javascript">
// script for google translate
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>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"> </script>

<!-- Your custom JavaScript -->
<script src="script.js"></script>
Expand Down

0 comments on commit 1dd32a1

Please sign in to comment.