I'm trying to use the google transliteration api with gwt but it is throwing an exception on runtime and the exception is: '$wnd.google.language' is null or not an object
I'm using the following piece of code in the 'onClick' handler in the entrypoint class.
Transliteration.transliterate(charList, LanguageCode.ENGLISH, LanguageCode.HINDI, new TransliterationCallback() {
@Override
protected void onCallback(TransliterationResult result) {
List> retList = new ArrayList>();
retList = result.getTransliterations();
ArrayList strList = new ArrayList();
}}});
Module.gwt.xml has the required piece of code: and gwt-language.jar is in the classpath of the project.