This might be a bit of a stretch, but I am wondering if there is a way to take the locale setting on an Experience Builder, and have it be used in an if statement on the pop up in a web map.
We are building an Experience Builder to share information publicly, we need to display our information in English and French. We are utilizing the URL parameter locale=FR to show the French, however this does not translate our pop up information (date and budget number specifically, we have other fields such as DESC and DESCFR for the written word attributes).
Essentially I'm wondering if there's a way to do something like:
var price = $feature.BUDGET;;
//if(locale=ENGLISH)
When(
price < 1000000, "$" + Text(price, "###,###"),
price < 1000000000, "$" + round(price/1000000, 3) + " million",
"")
//if{locale=FRENCH)
When(
price < 1000000, Replace(Text(price, "###,### $"),',',' '),
price < 1000000000, round(price/1000000, 3) + " M$",
"")
I found this Using Arcade to Translate Pop-Ups for Use in the ArcGIS Instant Apps (esri.com) and it seems to be going down the right path, but I'm not sure if it works in ExB. The way my colleague set up the ExB is 1 map underlying the whole thing, then an EN ExB, a FR ExB, then an ExB that has them each embedded as URLs, with the French URL including &locale=fr