<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="https://www.google.com/jsapi"> </script> <script type="text/javascript"> // 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.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 textbox with id // 'transliterateTextarea'. control.makeTransliteratable(['transliterateTextarea']); } google.setOnLoadCallback(onLoad); </script> </head> <body> Type in Hindi (Press Ctrl+g to toggle between English and Hindi)<br> <textarea id="transliterateTextarea" style="width:600px;height:200px"></textarea> </body> </html>Estoy usando este código de la Guía del desarrollador de la API de transliteración de Google, pero este código no funciona. Por favor, ayúdenme a resolverlo.
Estoy buscando una API para Hinglish a hindi y encontré Google Transliterate API Getting_started y tomé una muestra de código de este sitio web. Sin embargo, el código no funciona, se obtuvo un error en el navegador web.
Por favor, ayúdame a mejorar mis habilidades para hacer que los sitios web funcionen lo antes posible.