Back

Add Google Translator Api to a Web Page

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

// HTML ==== <div id="google_translate_element"></div> // === Script <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en',includedLanguages: 'es,en',layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } </script> <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> if you wish to add two languages like , English and Spanish , Used = includedLanguages: "es,en" If you wish to show all languages remove it from api