google translate using php

How to change language in google translate using php
@author : Shubham Maurya,
Email id :

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


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 type="text/javascript" src="//"></script>
<!-- Google Converter Code End -->


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.


Get More Bootstrap Code Here : Go Here

By jackmaurya121

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

Leave a Reply