Hi @ArielLow2146 ,
We were able to discern the origin of the issue, and it's actually coming from the way the arcade expression is checking for the locale. The if (locale == 'es') is only successful if locale is set and the culture is not set. We do set the culture for correctly formatting our widgets.
Instead, we can use an expression that is satisfied with just the locale setting: Left(Lower(locale), 2) == 'es'
Let me know if using a variation of this expression works for you:
var env = GetEnvironment();
var locale = env['locale'];
var popupText = $feature.Text_EN;
if (Left(Lower(locale), 2) == 'es') {
popupText = $feature.Text_ES;
}
return {
type : 'text',
text : `Locale: ${locale}<br /><br />Translated Popup Text: ${popupText}`
}
--Abby