DEV Community

Narendra Patel
Narendra Patel

Posted on

Multiple language website

When creating a new website, developers may want to add a translation feature that allows users of different languages other than English to read and use their website.

Well, I am going to share with you one way in which we can add a translation feature to a website.

Firstly add

add script

<br> function googleTranslateElementInit() {<br> new google.translate.TranslateElement({pageLanguage: &#39;en&#39;},<br><br> &#39;google_translate_element&#39;); <br> }<br>

Top comments (0)