Developer Forum

Ask a Question
Back to All

How to connect translater widget with sub domain

created a sub domain A record of hi in server (AWS router 53) , by adding mannually the language is translating but i need to connect to the widget when the user clicks on hindi tab that time, sub domain hi is automatically add to the url and when i click on english tab the hi sub domain remove and translate from hindi to english to achive this behaviour i crated cutomized widget following are the code:

Select Language

hindi tab working perfeclty but for the first time when i first click on english sub domain removes for the second click the language is changing how to make it to single click responce.