11import { Metadata } from "next"
22
3+ import { getI18n } from "../../../../../../locales/server"
4+
35import ProfilePhone from "@modules/account//components/profile-phone"
46import ProfileBillingAddress from "@modules/account/components/profile-billing-address"
57import ProfileEmail from "@modules/account/components/profile-email"
@@ -10,11 +12,15 @@ import { getCustomer, listRegions } from "@lib/data"
1012import { notFound } from "next/navigation"
1113
1214export const metadata : Metadata = {
13- title : "Profile " ,
14- description : "View and edit your Medusa Store profile." ,
15+ title : "page.profile.title " ,
16+ description : "page. profile.desc " ,
1517}
1618
1719export default async function Profile ( ) {
20+ const t = await getI18n ( )
21+ metadata . title = t ( "page.profile.title" )
22+ metadata . description = t ( "page.profile.desc" )
23+
1824 const customer = await getCustomer ( )
1925 const regions = await listRegions ( )
2026
@@ -25,12 +31,8 @@ export default async function Profile() {
2531 return (
2632 < div className = "w-full" data-testid = "profile-page-wrapper" >
2733 < div className = "mb-8 flex flex-col gap-y-4" >
28- < h1 className = "text-2xl-semi" > Profile</ h1 >
29- < p className = "text-base-regular" >
30- View and update your profile information, including your name, email,
31- and phone number. You can also update your billing address, or change
32- your password.
33- </ p >
34+ < h1 className = "text-2xl-semi" > { metadata . title } </ h1 >
35+ < p className = "text-base-regular" > { t ( "page.profile.details" ) } </ p >
3436 </ div >
3537 < div className = "flex flex-col gap-y-8 w-full" >
3638 < ProfileName customer = { customer } />
0 commit comments