Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript program german to english translation

<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: 'en',
                destinationLanguage: ['hi', 'kn', 'ml', 'ta', 'te'],
                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 = ["transl1", "transl2"];
            control.makeTransliteratable(ids);

            // Show the transliteration control which can be used to toggle between
            // English and Hindi and also choose other destination language.
            control.showControl('translControl');
        }
        google.setOnLoadCallback(onLoad);
    </script>
</head>

<body>
    <center>Type in Indian languages (Press Ctrl+g to toggle between English and Hindi)</center>
    <div id='translControl'></div>
    <br>Title : <input type='textbox' id="transl1" />
    <br>Body<br><textarea id="transl2" style="width:600px;height:200px"></textarea>
</body>

</html>
Comment

javascript program german to english translation

<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: 'en',
                destinationLanguage: ['hi', 'kn', 'ml', 'ta', 'te'],
                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 = ["transl1", "transl2"];
            control.makeTransliteratable(ids);

            // Show the transliteration control which can be used to toggle 
            between
            // English and Hindi and also choose other destination language.
            control.showControl('translControl');
        }
        google.setOnLoadCallback(onLoad);
    </script>
</head>
<body>
    <!-- <center>Type in Indian languages (Press Ctrl+g to toggle between English and Hindi)</center> -->
    <div id='translControl'></div>
    <br />Title:
    <input type='textbox' id="transl1" />
    <br />Body
    <br />
    <textarea id="transl2" style="width:600px;height:200px"></textarea>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: saber el alto de un div jquery 
Javascript :: expect vue test utils compare objects 
Javascript :: expecting eof json 
Javascript :: discord js get badge user 
Javascript :: Oops! Something went wrong! :( ESLint: 6.8.0. You are linting "node_modules/ipaddr.js" 
Javascript :: how to avoid inheritance in angular 
Javascript :: target all element besides the clicked one 
Javascript :: vuejs use set to prevent duplicates 
Javascript :: ngx-doc-viewer 
Javascript :: Send redirect URL in the text body of mail using nodemailer 
Javascript :: passing the href in ajax call 
Javascript :: javascript object shallow merge 
Javascript :: how to DELETE "/api/notes" with an id 
Javascript :: ajax data does not support alphabets 
Javascript :: my datatable in flutter from json repeat the column headers 
Javascript :: .env file vars nto defined in child directory 
Javascript :: es6 for-of loop 
Javascript :: angular.json to war 
Javascript :: npm start error eslint 
Javascript :: jquery how to detect click outside off-canvas-navigation 
Javascript :: javascript random six digit number with animation 
Javascript :: string comparision in jsp 
Javascript :: node js if 
Javascript :: div gets pulled to corner when resizing 
Javascript :: yeoman promise 
Javascript :: cchartpie react 
Javascript :: error check variable 
Javascript :: smmoth scroll js 
Javascript :: how to bind the dropdown data using ajax in .net mvc 
Javascript :: javascript loop 2 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =