Your listener id (must be unique for all user events)
Your listener function
// Each time the current locale is changed, this method is processed
JMap.Event.Language.on.localeChange(
"custom-language-locale-change",
params => console.info(`The current locale has changed, it is now "${params.locale}"`)
)
JMap.Event.Language.on.localeChange
This event is triggered when the current locale is changed in JMap Cloud NG translation engine.