11import { Metadata } from "next"
22
3+ import { getI18n } from "../../../../../../locales/server"
4+
35import OrderOverview from "@modules/account/components/order-overview"
46import { listCustomerOrders } from "@lib/data"
57import { notFound } from "next/navigation"
68
79export const metadata : Metadata = {
8- title : "Orders " ,
9- description : "Overview of your previous orders." ,
10+ title : "page.orders.title " ,
11+ description : "page. orders.desc " ,
1012}
1113
1214export default async function Orders ( ) {
15+ const t = await getI18n ( )
16+ metadata . title = t ( "page.orders.title" )
17+ metadata . description = t ( "page.orders.desc" )
18+
1319 const orders = await listCustomerOrders ( )
1420
1521 if ( ! orders ) {
@@ -19,11 +25,8 @@ export default async function Orders() {
1925 return (
2026 < div className = "w-full" data-testid = "orders-page-wrapper" >
2127 < div className = "mb-8 flex flex-col gap-y-4" >
22- < h1 className = "text-2xl-semi" > Orders</ h1 >
23- < p className = "text-base-regular" >
24- View your previous orders and their status. You can also create
25- returns or exchanges for your orders if needed.
26- </ p >
28+ < h1 className = "text-2xl-semi" > { t ( "page.orders.title" ) } </ h1 >
29+ < p className = "text-base-regular" > { t ( "page.orders.details" ) } </ p >
2730 </ div >
2831 < div >
2932 < OrderOverview orders = { orders } />
0 commit comments