Replace translated string in existing Widget

247
0
09-22-2022 07:37 AM
jotwe
by
New Contributor II

Hello,

Is it possible to replace a translated string of an existing widget?

I have an application based on ArcGIS API for JS v4.24 that is available in English and German. I would like to replace the predefined strings

// LayerList_en.json and LayerList.json
"showLayer":"Show layer"
"hideLayer":"Hide layer"
// LayerList_de.json
"showLayer":"Layer anzeigen"
"hideLayer":"Layer ausblenden"

of the LayerList widget which are defined in https://github.com/Esri/arcgis-js-api/tree/4master/assets/esri/widgets/LayerList/t9n.

I found this related post from 2021 where one answer states that "locales for existing widgets are not extensible at this time":

https://community.esri.com/t5/arcgis-api-for-javascript-questions/intl-fetchmessagebundle-for-existi...

Tags (2)
0 Kudos
0 Replies