<?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: multilanguage does not function in widgets, e.g. Demo widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403458#M37154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert, Thank you very much! I solved my problem -&lt;/P&gt;&lt;P&gt;1. Adding&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;locale=he" to the url works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;2. In order to sense the Chrome language (with no locale parameter in the url), I did 2 code modifications:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;2.1 - First modified&amp;nbsp;setLocale() code in init.js to "prefer" navigator.language upon cookies. For applications it's enough, and so for Launch button in WAB, but for WAB window itself, the widget label (for in-panel widget, when I hover on it) remained in english, so I had to do 2nd modification:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;2.2 - in jimu.js ConfigLoader.js in function _checkLocale() - when setting appLocale, I moved&amp;nbsp;dojoConfig.locale to the start of the "or" sentence.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;Now the Chrome language is sensed even if no locale parameter in url.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2020 16:05:52 GMT</pubDate>
    <dc:creator>MichaelLev</dc:creator>
    <dc:date>2020-07-01T16:05:52Z</dc:date>
    <item>
      <title>multilanguage does not function in widgets, e.g. Demo widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403454#M37150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new (one month) to esri Web AppBuilder (Developer Edition) for javascript. I made a few custom widgets, but changing Chrome language does not have any effect on displayed messages!...&lt;/P&gt;&lt;P&gt;I'll appreciate if someone will show me what is needed to do, for example, in the Demo widget example.&lt;/P&gt;&lt;P&gt;I'm working in 3d.&lt;/P&gt;&lt;P&gt;I'm astonished to see that in all the widget supplied in the app builder, none is doing what expected, when I change Chrome language...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 16:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403454#M37150</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-06-30T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: multilanguage does not function in widgets, e.g. Demo widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403455#M37151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Localizing your widget is cover in this guide page:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/guide/add-i18n-support.htm" title="https://developers.arcgis.com/web-appbuilder/guide/add-i18n-support.htm"&gt;Add i18n support—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing purposes you can add this parameter to the url to change the apps language:&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;locale=zh-cn&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403455#M37151</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-06-30T18:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: multilanguage does not function in widgets, e.g. Demo widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403456#M37152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;Thank you! "&lt;SPAN style="background-color: #ffffff;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;locale=he" works like magic!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;Only I'm astonished why changing Chrome language does not have any effect...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;Am I understanding correctly from your answer, that adding parameter to the URL is only a way for testing, and changing the Chrome language is the "MAIN" way? if this is what you meant, than what am I missing since it does not work...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;I'll appreciate your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 11:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403456#M37152</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-07-01T11:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: multilanguage does not function in widgets, e.g. Demo widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403457#M37153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;A far as I know Dojo gets the locale from the OS, not the browser. So if you have Windows installed with en-US then it will use English by default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 12:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403457#M37153</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-01T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: multilanguage does not function in widgets, e.g. Demo widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403458#M37154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert, Thank you very much! I solved my problem -&lt;/P&gt;&lt;P&gt;1. Adding&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;locale=he" to the url works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;2. In order to sense the Chrome language (with no locale parameter in the url), I did 2 code modifications:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;2.1 - First modified&amp;nbsp;setLocale() code in init.js to "prefer" navigator.language upon cookies. For applications it's enough, and so for Launch button in WAB, but for WAB window itself, the widget label (for in-panel widget, when I hover on it) remained in english, so I had to do 2nd modification:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;2.2 - in jimu.js ConfigLoader.js in function _checkLocale() - when setting appLocale, I moved&amp;nbsp;dojoConfig.locale to the start of the "or" sentence.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; border: 0px;"&gt;Now the Chrome language is sensed even if no locale parameter in url.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 16:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multilanguage-does-not-function-in-widgets-e-g/m-p/403458#M37154</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-07-01T16:05:52Z</dc:date>
    </item>
  </channel>
</rss>

