<?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 Re: Change Directions widget language arcgis js 3.38 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117738#M75317</link>
    <description>&lt;P&gt;This worked for me, but with a caveat.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;directions.setDirectionsLanguage("fr");&lt;/LI-CODE&gt;&lt;P&gt;According to the doc, this doesn't change the localization of the widget itself, just the language of the directions results coming from the REST API.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Specify the language used for the directions. The supported languages can be requested from either the Route Service REST API, or from the widget itself&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 17 Nov 2021 16:17:34 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-11-17T16:17:34Z</dc:date>
    <item>
      <title>Change Directions widget language arcgis js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117675#M75315</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with Directions widget within Arcgis api 3.38, and actually Im trying to change the directions language from English to Frensh language.&lt;/P&gt;&lt;P&gt;so I have tried to work with "setDirectionsLanguage(locale)",&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;U&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#setdirectionslanguage" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#setdirectionslanguage&lt;/A&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;But Im not able to do it correctly... any help please it would be much appreciated.&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117675#M75315</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-17T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change Directions widget language arcgis js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117738#M75317</link>
      <description>&lt;P&gt;This worked for me, but with a caveat.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;directions.setDirectionsLanguage("fr");&lt;/LI-CODE&gt;&lt;P&gt;According to the doc, this doesn't change the localization of the widget itself, just the language of the directions results coming from the REST API.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Specify the language used for the directions. The supported languages can be requested from either the Route Service REST API, or from the widget itself&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 17 Nov 2021 16:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117738#M75317</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-11-17T16:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change Directions widget language arcgis js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117954#M75330</link>
      <description>&lt;P&gt;Hi many thanks for your response,&lt;/P&gt;&lt;P&gt;I have already used it but did not worked for me...&amp;nbsp;directionsW.setDirectionsLanguage("fr");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 22:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117954#M75330</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-17T22:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change Directions widget language arcgis js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117961#M75331</link>
      <description>&lt;P&gt;Try in this sample.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_directions_basic" target="_blank"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_directions_basic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update the code like this.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;directions.startup();
// after startup()
directions.setDirectionsLanguage("fr");&lt;/LI-CODE&gt;&lt;P&gt;This worked for me. I think that method has to be called after the startup() method.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneRubalcava_0-1637188584908.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27705iFBD47C89EBAC3B2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneRubalcava_0-1637188584908.png" alt="ReneRubalcava_0-1637188584908.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 22:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1117961#M75331</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-11-17T22:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change Directions widget language arcgis js 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1118572#M75339</link>
      <description>&lt;P&gt;Hi, thanks for your help&lt;/P&gt;&lt;P&gt;I have did the same thing but still not working, But I think that the language should be installed first in the NAServer.&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 08:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-directions-widget-language-arcgis-js-3-38/m-p/1118572#M75339</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-19T08:39:05Z</dc:date>
    </item>
  </channel>
</rss>

