Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.44/5 (3 votes)
I am using google translation in my web and the English text toggle to my preferred language while pressing CTRL+G. Same way how can i did in mobile view? I have created button, but when i clicking this button the text was not translate. Please help me...What action for button click

What I have tried:

I need to create a button that will be able to toggle the language of a page's content between French and English.

How can I use the Google Translate API for this?
Posted
Updated 25-May-18 4:35am
v3
Comments
Afzaal Ahmad Zeeshan 17-May-18 4:33am    
Check the browser's console to see for any errors that might have been raised in the process.
F-ES Sitecore 17-May-18 6:30am    
Just ensure the site is using the right language meta data and if the user wants to look at a bad translation of your site they can use google translate themselves.

1 solution

<pre> <div class="block" id="sidebar-button-bar">
        <button class="action" id="sidebar-Name-button"></button>
here is the code your welcome if it does not work tell me in advance and i will research for you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900