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().