Select to view content in your preferred language

Locale on Popup Template Zoom to button

324
1
12-18-2023 05:32 AM
SaurabhUpadhyaya
Occasional Contributor

Hi Team,

We need to required to apply locale on popup template "zoom to" button. Can you share how to apply locale on zoom to button.

SaurabhUpadhyaya_1-1702906346985.png

 

0 Kudos
1 Reply
LaurenBoyd
Esri Contributor

Hi @SaurabhUpadhyaya -

To set your application's locale, you need to use the setLocale() method when your application starts up. Here's a reference page for localization with the JS Maps SDK: https://developers.arcgis.com/javascript/latest/localization/ 

And here's an example Codepen showing how to set this so that all widgets, including the popup, will be localized: https://codepen.io/laurenb14/pen/KKJOxZW?editors=1000 

Lauren
0 Kudos