Back to Medusa

CreateTranslationDTO

www/apps/resources/references/translation/interfaces/translation.CreateTranslationDTO/page.mdx

2.14.21.1 KB
Original Source

import { TypeList } from "docs-ui"

CreateTranslationDTO

The translation to be created.

<TypeList types={[{"name":"reference_id","type":"string","description":"The ID of the data model being translated.","optional":false,"defaultValue":"","example":""prod_123"","expandable":false,"children":[]},{"name":"reference","type":"string","description":"The name of the table that the translation belongs to.","optional":false,"defaultValue":"","example":""product"","expandable":false,"children":[]},{"name":"locale_code","type":"string","description":"The BCP 47 language tag code for this translation.","optional":false,"defaultValue":"","example":""en-US"","expandable":false,"children":[]},{"name":"translations","type":"Record<string, unknown>","description":"The translated fields as key-value pairs.","optional":false,"defaultValue":"","example":"{ * "title": "Product Title", * "description": "Product Description", * }","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="CreateTranslationDTO"/>