ESL Translation for WebAppbuilder/Operations Dashboard

868
0
12-11-2018 02:44 PM
Status: Open
by Anonymous User
Not applicable

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>

Tags (1)