www/apps/resources/references/module_events/module_events.Translation/page.mdx
import { TypeList } from "docs-ui"
This reference shows all the events emitted by the Medusa application related to the Translation Module. If you use the module outside the Medusa application, these events aren't emitted.
<EventHeader headerLvl="2" headerProps={{ id: "translationcreated", children: (<>translation.created
<Tooltip text="This event was added in version v2.12.3">
<Badge variant="blue">v2.12.3</Badge>
</Tooltip></>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="translation.created" payload={\``ts
{
id, // The ID of the translation
}
````} />
Emitted when translations are created.
{
id, // The ID of the translation
}
The following workflows emit this event when they're executed. These workflows are executed by Medusa's API routes. You can also view the events emitted by API routes in the Store and Admin API references.
<EventHeader headerLvl="2" headerProps={{ id: "translationupdated", children: (<>translation.updated
<Tooltip text="This event was added in version v2.12.3">
<Badge variant="blue">v2.12.3</Badge>
</Tooltip></>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="translation.updated" payload={\``ts
{
id, // The ID of the translation
}
````} />
Emitted when translations are updated.
{
id, // The ID of the translation
}
The following workflows emit this event when they're executed. These workflows are executed by Medusa's API routes. You can also view the events emitted by API routes in the Store and Admin API references.
<EventHeader headerLvl="2" headerProps={{ id: "translationdeleted", children: (<>translation.deleted
<Tooltip text="This event was added in version v2.12.3">
<Badge variant="blue">v2.12.3</Badge>
</Tooltip></>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="translation.deleted" payload={\``ts
{
id, // The ID of the translation
}
````} />
Emitted when translations are deleted.
{
id, // The ID of the translation
}
The following workflows emit this event when they're executed. These workflows are executed by Medusa's API routes. You can also view the events emitted by API routes in the Store and Admin API references.