ESL Translation for WebAppbuilder/Operations Dashboard

Idea created by 073483@one.phoenix.gov_Phoenix on Dec 11, 2018
    New
    Score30
    • JMKling
    • julgaspar
    • 073483@one.phoenix.gov_Phoenix

    We live in a multi-lingual world, and we (strive to) communicate our GIS worldwide.  Many of our own communities use English as a second language. 

    Wouldn't it be nice if we could have our Apps and Dashboards more easily understood (with translation) by those near and far communities?  

     

    It is currently possible to insert Google Translate using the ArcGIS API for JavaScript.   

    Can we see this enabled as a Widget for use in WebAppbuilder or Operations Dashboards?

     

    The code a neighbor used to insert English/Spanish translation into a JavaScript GIS application's navbar is as follows:

    (In this one 'en,es' are the included languages, but Google is capable some 100 other's as well.)

     

    <div id="google_translate_element"></div>

    <script type="text/javascript">

        function googleTranslateElementInit() {

            new google.translate.TranslateElement({

                pageLanguage: 'en',

                includedLanguages: 'en,es',

                layout: google.translate.TranslateElement.InlineLayout.SIMPLE

            }, 'google_translate_element');

        }

    </script>

    <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

    Attachments