Select to view content in your preferred language

Locale not applying on Search "All" default value

287
1
12-18-2023 05:28 AM
SaurabhUpadhyaya
Occasional Contributor

Hi ESRI Team,

We are implementing ArcGIS 4.27 locale functionality on Search Widget, all dropdownlist value text changed using Locale but default "All" first option on search dropdown list is not changing. Once i set searchAllEnabled:false, All is not coming but we have required "All" which locale is already available.

 const search = new Search({
          view: view,
          container: "SearchContainer",
          allPlaceholder: intl.formatMessage({ id: "Search" }),     
          includeDefaultSources: false,
          locationEnabled: false,
        // searchAllEnabled:false
        });

SaurabhUpadhyaya_0-1702906087504.png

 

 

0 Kudos
1 Reply
JoelBennett
MVP Regular Contributor

Have you used the "setLocale" method of the esri/intl module?  I've found that it changes the language of that option as expected.  For example:

intl.setLocale("es");

 

I've also found this changes the text of the "Zoom to" utility on the popup, as mentioned in your other thread

0 Kudos