Skip to content

Commit

Permalink
change the language selection options
Browse files Browse the repository at this point in the history
  • Loading branch information
anushanga2001@gmail.com committed Nov 10, 2024
1 parent 94ea860 commit 89d9c06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement(
{ pageLanguage: 'en' },
{
pageLanguage: 'en', // Default language set to English
includedLanguages: 'en,es,fr,de,it,pt', // Example list of languages to include
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
autoDisplay: false, // Ensures it won't translate until user selects
},
'google_translate_element'
);
}
Expand Down

0 comments on commit 89d9c06

Please sign in to comment.