Translations management events¶
The Translations management package dispatches events at two levels.
<>Update the intro: there are now also bulk translation job events.</>
Translation events¶
Translation events are dispatched for every field in each selected target language. Use them for logging, analytics, and observability. Both events are read-only, you can't use them to override the translation result.
| Event | Dispatched by | Dispatched when |
|---|---|---|
BeforeTranslateEvent |
EventDispatchingProviderTranslator |
Before a translation request is sent to the provider |
TranslateEvent |
EventDispatchingProviderTranslator |
After a translation response is received |
Side-by-side creation events¶
Side-by-side creation events are dispatched when preparing a new translation draft.
| Event | Dispatched by | Dispatched when |
|---|---|---|
OnContentSideBySideTranslationCreateEvent |
ContentTranslationCreateController |
When creating a draft side-by-side translation of a content item |
OnProductSideBySideTranslationCreateEvent |
ProductTranslationViewController |
When creating a draft side-by-side translation of a product |
Bulk translation events¶
<>Table of BulkTranslationJobStartedEvent, BulkTranslationJobFinishedEvent, and BulkTranslationJobRemovedEvent (namespace Ibexa\Contracts\TranslationsManagement\BulkTranslations\Event): when each is dispatched, and whether it's read-only. Verify in code.</>