1 // Load the Google Transliteration API
2 google.load("elements", "1", {
3 packages: "transliteration"
9 destinationLanguage: ['hi','kn','ml','ta','te'],
10 shortcutKey: 'ctrl+g',
11 transliterationEnabled: false
14 // Create an instance on TransliterationControl with the required
17 new google.elements.transliteration.TransliterationControl(options);
19 // Enable transliteration in the textfields with the given ids.
20 var ids = [ "translControl1" ];
21 control.makeTransliteratable(ids);
23 // Show the transliteration control which can be used to toggle between
24 // English and Hindi and also choose other destination language.
25 control.showControl('translControl');
27 google.setOnLoadCallback(onLoad);