Back to Medusa

CreateLocaleDTO

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

2.14.2781 B
Original Source

import { TypeList } from "docs-ui"

CreateLocaleDTO

The locale to be created.

<TypeList types={[{"name":"code","type":"string","description":"The BCP 47 language tag code of the locale.","optional":false,"defaultValue":"","example":""en-US"","expandable":false,"children":[]},{"name":"name","type":"string","description":"The human-readable name of the locale.","optional":false,"defaultValue":"","example":""English (United States)"","expandable":false,"children":[]},{"name":"id","type":"string","description":"The ID of the locale to create.","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="CreateLocaleDTO"/>