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:
Shahed Nasser authored and GitHub committed 2025-12-17 13:07:43 +02:00
1 parent 1743ed7f04
commit c1a5390fc6
133 files changed
+21304 -1661

No files matched your search

@@ -10,7 +10,7 @@ products:
- payment
---
import { CodeTabs, CodeTab } from "docs-ui"
import { CodeTabs, CodeTab, Prerequisites } from "docs-ui"
export const metadata = {
title: `Checkout Step 5: Complete Cart`,
@@ -57,6 +57,23 @@ When the cart completion is successful, it's important to unset the cart ID from
---
## Order's Locale after Cart Completion
<Prerequisites
items={[
{
text: "Translation Module Configured",
link: "/commerce-modules/translation#configure-translation-module",
}
]}
/>
When you complete the cart, items in the order will be in the locale that was set for the cart. This ensures that the customer sees the order details in their preferred language.
If no locale was set for the cart, then the order's items will be in the original product content.
---
## React Example with Default System Payment Provider
For example, to complete the cart when the default system payment provider is used:
@@ -6,7 +6,7 @@ products:
- order
---
import { CodeTabs, CodeTab, Table } from "docs-ui"
import { CodeTabs, CodeTab, Table, Prerequisites } from "docs-ui"
export const metadata = {
title: `Order Confirmation in Storefront`,
@@ -144,6 +144,21 @@ return (
In the above example, you show the order items in a list, displaying the item's title, quantity, and unit price formatted with the `formatPrice` function.
### Locale of Order Items
<Prerequisites
items={[
{
text: "Translation Module Configured",
link: "/commerce-modules/translation#configure-translation-module",
}
]}
/>
When you complete the cart, items in the order will be in the locale that was set for the cart. This ensures that the customer sees the order details in their preferred language.
If no locale was set for the cart, then the order's items will be in the original product content.
---
## Show Order Totals