/How to change language in google translate using php
google translate using php

How to change language in google translate using php

How to change language in google translate using php
/**
@author : Shubham Maurya,
Email id : maurya.shubham5@gmail.com
**/

Hi all , Welcome to shubhammaurya.com , Today we are going to discuss ,
How to change language in google translate using php

LETS START

Change language in google translate

So, To start first make a file in notepad and save it as index.html and paste the below code.

<!-- Google Converter Code Starts -->
    <div id="google_translate_element"></div>

<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en' , includedLanguages: 'en,hi'}, 'google_translate_element');
}
</script>

<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!-- Google Converter Code End -->

<h1>Welcome</h1>

You can add more languages using this function

includedLanguages: ' de,nl,en,es,it,fr'

Download the project from Github : Download

Comment Below, If any problem occurs.

STAY CONNECTED FOR MORE

Get More Bootstrap Code Here : Go Here

Hi , My Name is Shubham Maurya and i am currently working as a Project Manager.