0
function googleTranslateElementInit() { 
  new google.translate.TranslateElement({
    pageLanguage: 'en', 
    includedLanguages: 'ar,de,en,nl,ru', 
    layout: google.translate.TranslateElement.InlineLayout.SIMPLE
  }, 'google_translate_element'); 
}
<script src="https://translate.google.com/translate_a/element.js"></script>
<div id="google_translate_element"></div>

I want to show flags in google translater with language text?

Mosh Feu
  • 28,354
  • 16
  • 88
  • 135
  • 1
    Possible duplicate of [Implementing Google Translate with custom flag icons](http://stackoverflow.com/questions/10486833/implementing-google-translate-with-custom-flag-icons) – Mosh Feu Nov 06 '16 at 09:53
  • sir ,How we show flag with language text and how flag icon change ,when i change language?.. Possible duplicate of Implementing Google Translate with custom flag icons give problems .. – Ashish Rana Nov 06 '16 at 11:20
  • The key is not to use the google widget but hide it and manage the functionality on your own widget. When user clicks on your widget you "click" on the hidden widget. Got it? – Mosh Feu Nov 06 '16 at 11:24

0 Answers0