How to add google language converter API in our website


index.php


     

<!DOCTYPE html>

<html lang="en-US">

<body>

<div id="google_translate_element"></div>

<h1>My Web Page</h1>

<p>This is my first article !</p>

<p>STUDENT SUCCESS STORIES:</p>

<p>Your story is unique. That’s why we work closely with you to understand your particular interests, needs, and aspirations. Read on for stories of real students who know this first-hand, and get inspired to create your own student success story!</p>



<script type="text/javascript">

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>

<p>You can translate the content of this page by selecting a language in the select box.</p>

</body>

</html>