AboutSupportDeveloper GuideVersion 46.151.100.42

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;
}

Properties

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

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