<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to translate Webmap with ArcGIS JS API? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-translate-webmap-with-arcgis-js-api/m-p/1006947#M71000</link>
    <description>&lt;P&gt;I have found the setLocale() Method:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/guide/localization/index.html" target="_blank" rel="noopener"&gt;Localization | ArcGIS API for JavaScript 4.17&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it only seems to apply changes to the widgets which are used within the webmap, but not the actual webmap. For example the webmaps countries are labeled in English but I need it to be in Russian as it was applied to a widget (here in this example I have used the Measurement widget).&lt;/P&gt;&lt;P&gt;Does anybody have an idea how to change the labeling language of the webmap itself and not just its components? Thanks in advance!&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require(["esri/views/MapView", "esri/WebMap", "esri/intl", "esri/widgets/Measurement"], function (
        MapView,
        WebMap,
        intl,
        Measurement
      ) {

        var webmap = new WebMap({
            basemap: 'topo'
        });

        var view = new MapView({
          map: webmap,
          container: "viewDiv"
        });
        
        
        const measurement = new Measurement({
          view: view,
          activeTool: "distance"
        });
        view.ui.add(measurement, "top-right");

        view.when(function () {
            intl.onLocaleChange(function(locale) {
                console.log("locale changed to: ", locale);
            });

            intl.setLocale("ru");
        });
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 14:12:01 GMT</pubDate>
    <dc:creator>ChristianBischof</dc:creator>
    <dc:date>2020-12-04T14:12:01Z</dc:date>
    <item>
      <title>How to translate Webmap with ArcGIS JS API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-translate-webmap-with-arcgis-js-api/m-p/1006947#M71000</link>
      <description>&lt;P&gt;I have found the setLocale() Method:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/guide/localization/index.html" target="_blank" rel="noopener"&gt;Localization | ArcGIS API for JavaScript 4.17&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it only seems to apply changes to the widgets which are used within the webmap, but not the actual webmap. For example the webmaps countries are labeled in English but I need it to be in Russian as it was applied to a widget (here in this example I have used the Measurement widget).&lt;/P&gt;&lt;P&gt;Does anybody have an idea how to change the labeling language of the webmap itself and not just its components? Thanks in advance!&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require(["esri/views/MapView", "esri/WebMap", "esri/intl", "esri/widgets/Measurement"], function (
        MapView,
        WebMap,
        intl,
        Measurement
      ) {

        var webmap = new WebMap({
            basemap: 'topo'
        });

        var view = new MapView({
          map: webmap,
          container: "viewDiv"
        });
        
        
        const measurement = new Measurement({
          view: view,
          activeTool: "distance"
        });
        view.ui.add(measurement, "top-right");

        view.when(function () {
            intl.onLocaleChange(function(locale) {
                console.log("locale changed to: ", locale);
            });

            intl.setLocale("ru");
        });
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 14:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-translate-webmap-with-arcgis-js-api/m-p/1006947#M71000</guid>
      <dc:creator>ChristianBischof</dc:creator>
      <dc:date>2020-12-04T14:12:01Z</dc:date>
    </item>
  </channel>
</rss>

