fix(utils,core-flows): add events constant for translations and use it in workflows (#14277)

This commit is contained in:
Shahed Nasser
2025-12-11 11:22:08 +02:00
committed by GitHub
parent d7398736e8
commit a78f68fa46
5 changed files with 58 additions and 3 deletions

View File

@@ -889,3 +889,49 @@ export const PaymentEvents = {
*/
REFUNDED: "payment.refunded",
}
/**
* @category Translation
* @customNamespace Translation
*/
export const TranslationWorkflowEvents = {
/**
* Emitted when translations are created.
*
* @since 2.13.0
* @featureFlag translation
* @eventPayload
* ```ts
* {
* id, // The ID of the translation
* }
* ```
*/
CREATED: "translation.created",
/**
* Emitted when translations are updated.
*
* @since 2.13.0
* @featureFlag translation
* @eventPayload
* ```ts
* {
* id, // The ID of the translation
* }
* ```
*/
UPDATED: "translation.updated",
/**
* Emitted when translations are deleted.
*
* @since 2.13.0
* @featureFlag translation
* @eventPayload
* ```ts
* {
* id, // The ID of the translation
* }
* ```
*/
DELETED: "translation.deleted",
}