google.language.transliterate not working for english to hindi transliteration

31 views
Skip to first unread message

Rasvinder Soodan

unread,
Jan 22, 2014, 11:46:49 AM1/22/14
to google-ajax...@googlegroups.com

Hi,


I am not able to convert multiline text from english to hindi.... It works perfectly fine for 'english to urdu' and 'english to gujarati'..... for hindi, it does not...

for example

       google.language.transliterate(["house no. 28"], "en", "gu", function(result) {
           if (!result.error) {
               if (result.transliterations && result.transliterations.length > 0 && result.transliterations[0].transliteratedWords.length > 0) {
                  
                   document.getElementById("<%=txtaddre.ClientID%>").value = result.transliterations[0].transliteratedWords[0];
               }
           }
       });

The above works perfectly fine and gives me the output as  :    હાઉસ નો. ૨૮

but as soon as I replace "gu" with "hi", it gives no output at all.....


Please help..............
Reply all
Reply to author
Forward
0 new messages