docs: translation module (#14271)
* docs: translation module * fix link in JS SDK * add translations user guides [WIP] * updates * fix broken link * remove mentions of default locale * change header * updates * updated user guides * handle todos * fix build error * fix lint errors
This commit is contained in:
@@ -18,6 +18,20 @@ A cart holds information about:
|
||||
- The payment method and information necessary to complete the purchase.
|
||||
- These are stored and handled by the [Payment Module](../../payment/page.mdx).
|
||||
|
||||
### Cart Locale
|
||||
|
||||
<Note>
|
||||
|
||||
Cart locale is available starting [Medusa v2.12.3](https://github.com/medusajs/medusa/releases/tag/v2.12.3).
|
||||
|
||||
</Note>
|
||||
|
||||
The `Cart` data model has a `locale` property that indicates the locale of the cart. This locale is in the [IETF BCP 47 standard](https://gist.github.com/typpo/b2b828a35e683b9bf8db91b5404f1bd1) format, such as `en-US` for American English or `fr-FR` for French (France).
|
||||
|
||||
When creating a cart, you can set the `locale` property to specify the desired locale for the cart. The information of the items in the cart, such as product titles and descriptions, will be displayed in the specified locale if translations are available.
|
||||
|
||||
Refer to the [Translation Module](../../translation/page.mdx) to learn more about how translations and locales work.
|
||||
|
||||
---
|
||||
|
||||
## Line Items
|
||||
|
||||
Reference in New Issue
Block a user