• JMap.Event.Language.on.localeChange

    This event is triggered when the current locale is changed in JMap Server NG translation engine.

    Parameters

    • listenerId: string

      Your listener id (must be unique for all user events)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // 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}"`)
    )