<?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: Localization of WEB APP widgets in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194095#M5337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Martin,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; &amp;nbsp;That is the right way to localize strings that are coming from the JS API like the measurement widget. The only thing you can do is add an if statement to check is the browsers locale is danish and apply your string change or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Jun 2019 11:26:16 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-06-15T11:26:16Z</dc:date>
    <item>
      <title>Localization of WEB APP widgets</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194094#M5336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have setup a WEB APP on ArcGIS online and then I have downloaded it to be hosted locally on our server. I wish to change some text in danish localization to a faroese texts, which serves our purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to change many of the texts by accessing a NLS folder for a widget I want to customize (e.g. query widget "...widgets\Query\nls\Widget_da.js" and change the texts. But some widgets do not have text strings in NLS folder, specifically "measaurement" widget. I have managed to change the lables by adding a following js code to the measurement widget js code, right before the original code starts (see attached image):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require(["dojo/i18n!esri/nls/jsapi"],&lt;BR /&gt; function(bundle) {&lt;BR /&gt; // bundle.widgets.measurement.NLS_area_sq_kilometers = "km&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;";&lt;BR /&gt; // bundle.widgets.measurement.NLS_resultLabel = "Mlæ";&lt;BR /&gt; }&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="450461" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/450461_change_strings_wab.jpg" /&gt;&lt;/P&gt;&lt;P&gt;However, I realize that this is probably not best solution. My questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Where to add a custom code like this if I wish to extend a widget. Remember, I have downloaded the code from AGOL, I am not working with WAB for developers.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;I would imagine that this code will change the texts&amp;nbsp; for all languages not only for&amp;nbsp; danish. Is there a way I can change the text only one language?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2019 10:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194094#M5336</guid>
      <dc:creator>MartinSirkovsky1</dc:creator>
      <dc:date>2019-06-15T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Localization of WEB APP widgets</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194095#M5337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Martin,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; &amp;nbsp;That is the right way to localize strings that are coming from the JS API like the measurement widget. The only thing you can do is add an if statement to check is the browsers locale is danish and apply your string change or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2019 11:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194095#M5337</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-15T11:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Localization of WEB APP widgets</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194096#M5338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Robert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you, or maybe someone else know how to modify the string "- empty -" which is used as placeholder in input field in query widget?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/450492_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2019 16:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194096#M5338</guid>
      <dc:creator>MartinSirkovsky1</dc:creator>
      <dc:date>2019-06-16T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Localization of WEB APP widgets</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194097#M5339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;That is coming from the JS API:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;require&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"dojo/i18n!esri/nls/jsapi"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;esriJSnls&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;esriJSnls&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;widgets&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;empty&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194097#M5339</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T09:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Localization of WEB APP widgets</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194098#M5340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 20:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/localization-of-web-app-widgets/m-p/194098#M5340</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-18T20:36:41Z</dc:date>
    </item>
  </channel>
</rss>

