<?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: Question about Localization and Expand widget - ArcGIS Maps SDK for JavaScript 4.25 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-localization-and-expand-widget/m-p/1252479#M80079</link>
    <description>&lt;P&gt;Yes, you can still do the same thing. Just make sure the search widget has loaded before you assign it to the expandToolTip.&lt;BR /&gt;&lt;BR /&gt;Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/bsvensson/pen/gOjKeKa?editors=1000" target="_blank"&gt;https://codepen.io/bsvensson/pen/gOjKeKa?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 19:25:03 GMT</pubDate>
    <dc:creator>BjornSvensson</dc:creator>
    <dc:date>2023-01-27T19:25:03Z</dc:date>
    <item>
      <title>Question about Localization and Expand widget - ArcGIS Maps SDK for JavaScript 4.25</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-localization-and-expand-widget/m-p/1252340#M80072</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a little question about Localization when using the Expand widget. Actually, I have asked &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-localization-arcgis-api-for/m-p/643856#M60061" target="_blank" rel="noopener"&gt;the same question way back in 2019&lt;/A&gt;, and I got a satisfactory answer at the time from&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491"&gt;@KellyHutchins&lt;/a&gt;. The solution provided back then worked in the JS API 4.11 but stopped working a few releases later (4.17? 4.18?).&lt;/P&gt;&lt;P&gt;But the issue remains, so I am searching for an alternative solution.&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;I love this Localization in the JavaScript Maps SDK, with the SDK automatically using the locale of the browser. So, in my case everything is showing in Dutch. Cool.&lt;/P&gt;&lt;P&gt;Now I have a little issue: I like my widgets to be collapsed, so I have put my &lt;STRONG&gt;Search&lt;/STRONG&gt; widget within an &lt;STRONG&gt;Expand &lt;/STRONG&gt;widget. The question is about localization when using the &lt;STRONG&gt;Expand&lt;/STRONG&gt; widget: the &lt;STRONG&gt;expandTooltip&lt;/STRONG&gt; defaults to "Expand" for English locale, whereas I want it to read "Search" or "Find address or place". I can modify the &lt;STRONG&gt;expandTooltip&lt;/STRONG&gt;, but then I will loose the advantages of localization.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, is there a way to replace the hard coded "Find address or place" with a string that will be localized?&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;expandTooltip: "Find address or place",‍‍ // loss of localization :-(‍&lt;/PRE&gt;&lt;P&gt;The solution given at the time was to use the searchWidget.label (and, as I said, this worked like a charm in 4.11) like this:&lt;/P&gt;&lt;PRE&gt;expandTooltip: searchWidget.label, // "Search" in stead of the default "Expand" for English locale‍‍&lt;/PRE&gt;&lt;P&gt;But not anymore... so, how would I solve this issue in 4.25?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 14:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-localization-and-expand-widget/m-p/1252340#M80072</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2023-01-27T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Localization and Expand widget - ArcGIS Maps SDK for JavaScript 4.25</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-localization-and-expand-widget/m-p/1252479#M80079</link>
      <description>&lt;P&gt;Yes, you can still do the same thing. Just make sure the search widget has loaded before you assign it to the expandToolTip.&lt;BR /&gt;&lt;BR /&gt;Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/bsvensson/pen/gOjKeKa?editors=1000" target="_blank"&gt;https://codepen.io/bsvensson/pen/gOjKeKa?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 19:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-localization-and-expand-widget/m-p/1252479#M80079</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2023-01-27T19:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Localization and Expand widget - ArcGIS Maps SDK for JavaScript 4.25</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-localization-and-expand-widget/m-p/1252518#M80083</link>
      <description>&lt;P&gt;OK. Cool. Thanks for your swift reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Previously (in 4.11) it worked directly, without the need to wait for the widget to be loaded. But apparently the library has grown to such a level of complexity that this additional step is needed.&lt;/P&gt;&lt;P&gt;Thanks again. Will go and apply this new knowledge immediately.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 20:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-localization-and-expand-widget/m-p/1252518#M80083</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2023-01-27T20:48:35Z</dc:date>
    </item>
  </channel>
</rss>

