<script type="text/javascript"> var dojoConfig = { parseOnLoad:true, locale:"es" }; </script>
Hello Martin,
you can include "dojo/i18n!esri/nls/jsapi" and then in your function declare the following, where in the string translation, you define the corresponding Slovenian one.
esri.bundle.widgets.measurement.NLS_area = "translation";
esri.bundle.widgets.measurement.NLS_area_acres = "translation";
esri.bundle.widgets.measurement.NLS_area_sq_feet = "translation";
esri.bundle.widgets.measurement.NLS_area_sq_kilometers = "translation";
esri.bundle.widgets.measurement.NLS_area_hectares = "translation";
esri.bundle.widgets.measurement.NLS_area_sq_meters = "translation";
esri.bundle.widgets.measurement.NLS_area_sq_miles = "translation";
esri.bundle.widgets.measurement.NLS_area_sq_yards = "translation";
esri.bundle.widgets.measurement.NLS_length_kilometers = "translation";
esri.bundle.widgets.measurement.NLS_distance = "translation";
esri.bundle.widgets.measurement.NLS_length_feet = "translation";
esri.bundle.widgets.measurement.NLS_length_meters = "translation";
esri.bundle.widgets.measurement.NLS_length_miles = "translation";
esri.bundle.widgets.measurement.NLS_length_yards = "translation";
esri.bundle.widgets.measurement.NLS_resultLabel = "translationΜέτρησης:";
esri.bundle.widgets.measurement.NLS_decimal_degrees = "translation";
esri.bundle.widgets.measurement.NLS_latitude = "translation";
esri.bundle.widgets.measurement.NLS_location = "translation";
esri.bundle.widgets.measurement.NLS_longitude = "translation";
You can also see the following guide for your reference:
Localization | Guide | ArcGIS API for JavaScript
Hello,
can someone describe how to localize this tool in Slovenian because in JSAPI there is sl locale but it doesn't work.
Thanks in advance
Martin
hi Antigoni Koffa is it possible to remove some of measures in the area ,length dropbox ? we dont use hectares , or feet.
sorry but i didn't see Hebrew listed there !am i missing something?
You can define strings for additional locales by creating a new resource bundle file that contains the translated strings. View the Dojo help topic Globalization Guidelines: Locale and Resource Bundle for more details.
hi allcan you set the language of the measure tool to Hebrew?
Yes. Similar to all JS widgets, measurement widget support 9 different languages. You just need to specify the locale in your config settings.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.