// JavaScript Document
// Load the Google Transliteration API
google.load("elements", "1", {
	packages: "transliteration"
  });

function onLoad() {
var options = {
  sourceLanguage: 'en', // or google.elements.transliteration.LanguageCode.ENGLISH,
  destinationLanguage: ['pa'], // or [google.elements.transliteration.LanguageCode.HINDI],
  shortcutKey: 'ctrl+g',
  transliterationEnabled: true
};
// Create an instance on TransliterationControl with the required
// options.
var control =
	new google.elements.transliteration.TransliterationControl(options);

// Enable transliteration in the textfields with the given ids.
var ids = [ "transPunjabi", "transliterate" ];
control.makeTransliteratable(ids);

// Show the transliteration control which can be used to toggle between
// English and Hindi.
control.showControl('translControl');
}
google.setOnLoadCallback(onLoad);
