Select to view content in your preferred language

how to use translate (in mapbase.tsx, outside render())

292
0
05-13-2024 06:12 AM
Labels (2)
MichaelLev
Regular Contributor

I adapted arcgis-map widget to make it one of my custom widgets.
In src/runtime/componnts/mapbase.tsx
I want to use src/runtime/translations/defaults (and also other language).

mapbase.tsx uses this.formatMessage in render() for translarion,

but I need to translate in view.when which is in createMapbaseView function, outside render().

0 Kudos
0 Replies