AboutSupportDeveloper GuideVersion 47.154.100.2
OpenFin JavaScript API
    Preparing search index...

    Interface TranslationStateChangedEvent

    Generated when the translation state of a WebContents changes, such as when a page in a foreign language is detected or when a translation completes.

    interface TranslationStateChangedEvent {
        name: string;
        topic: string;
        translationEnabled: boolean;
        type: "translation-state-changed";
        uuid: string;
    }
    Index
    name: string
    topic: string

    The "kebab-case" classname of the emitter that raised the event.

    OpenFin.Frame is represented as iframe.

    translationEnabled: boolean

    Whether translation is supported on this WebContents.

    type: "translation-state-changed"

    The type of event that was raised. Equal to the typename of the event payload in "kebab case".

    Guaranteed to be unique within each topic, but can be repeated between topics (e.g. WebContentsEvents.CrashedEvent and ApplicationEvents.CrashedEvent).

    uuid: string