// Load the Google Transliterate API
google.load(“elements”, “1”, {
packages: “transliteration”
});

function onLoad() {
var options = {
sourceLanguage:
google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage:
[google.elements.transliteration.LanguageCode.NEPALI],
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 textbox with id
// ‘transliterateTextarea’.
control.makeTransliteratable([‘transliterateTextarea’]);
}
google.setOnLoadCallback(onLoad);

Type in Nepali (Press Ctrl+g to toggle between English and Nepali)

Comments

  • हेलोखबरमा प्रकाशित कुनै पनि सामग्रीबारे केही गुनासो तथा सुझाव भए हामीलाई [email protected] मा पठाउन सक्नुहुनेछ । धन्यवाद ।