diff --git a/src/app/[countryCode]/(checkout)/checkout/page.tsx b/src/app/[countryCode]/(checkout)/checkout/page.tsx index a6009a14e..e1ed9a1e6 100644 --- a/src/app/[countryCode]/(checkout)/checkout/page.tsx +++ b/src/app/[countryCode]/(checkout)/checkout/page.tsx @@ -1,7 +1,9 @@ import { Metadata } from "next" import { cookies } from "next/headers" import { notFound } from "next/navigation" -import { LineItem } from "@medusajs/medusa" +import { Cart, LineItem } from "@medusajs/medusa" + +import { getI18n } from "../../../../locales/server" import { enrichLineItems } from "@modules/cart/actions" import Wrapper from "@modules/checkout/components/payment-wrapper" @@ -31,6 +33,9 @@ const fetchCart = async () => { } export default async function Checkout() { + const t = await getI18n() + metadata.title = t("checkout.title") + const cart = await fetchCart() if (!cart) { diff --git a/src/app/[countryCode]/(checkout)/layout.tsx b/src/app/[countryCode]/(checkout)/layout.tsx index 53793dbd8..d61846842 100644 --- a/src/app/[countryCode]/(checkout)/layout.tsx +++ b/src/app/[countryCode]/(checkout)/layout.tsx @@ -2,11 +2,15 @@ import LocalizedClientLink from "@modules/common/components/localized-client-lin import ChevronDown from "@modules/common/icons/chevron-down" import MedusaCTA from "@modules/layout/components/medusa-cta" -export default function CheckoutLayout({ +import { getI18n } from "../../../locales/server" + +export default async function CheckoutLayout({ children, }: { children: React.ReactNode }) { + const t = await getI18n() + return (
@@ -18,10 +22,10 @@ export default function CheckoutLayout({ > - Back to shopping cart + {t("checkout.back")} - Back + {t("generic.back")} - Medusa Store + {t("store.name")}
-
{children}
+
+ {children} +
diff --git a/src/app/[countryCode]/(checkout)/not-found.tsx b/src/app/[countryCode]/(checkout)/not-found.tsx index 838c9683e..c1b6619d2 100644 --- a/src/app/[countryCode]/(checkout)/not-found.tsx +++ b/src/app/[countryCode]/(checkout)/not-found.tsx @@ -1,19 +1,26 @@ +import { getI18n } from "../../../locales/server" import InteractiveLink from "@modules/common/components/interactive-link" import { Metadata } from "next" export const metadata: Metadata = { title: "404", - description: "Something went wrong", + description: "generic.somethingwrong", } export default async function NotFound() { + const t = await getI18n() + + metadata.description = t("generic.somethingwrong") + return (
-

Page not found

+

+ {t("generic.notfound_title")} +

- The page you tried to access does not exist. + {t("generic.notfound_desc")}

- Go to frontpage + {t("generic.notfound_link")}
) } diff --git a/src/app/[countryCode]/(main)/account/@dashboard/addresses/page.tsx b/src/app/[countryCode]/(main)/account/@dashboard/addresses/page.tsx index e3125729d..991d3656b 100644 --- a/src/app/[countryCode]/(main)/account/@dashboard/addresses/page.tsx +++ b/src/app/[countryCode]/(main)/account/@dashboard/addresses/page.tsx @@ -1,6 +1,8 @@ import { Metadata } from "next" import { notFound } from "next/navigation" +import { getI18n } from "../../../../../../locales/server" + import AddressBook from "@modules/account/components/address-book" import { getCustomer, getRegion } from "@lib/data" @@ -8,11 +10,15 @@ import { getCustomer, getRegion } from "@lib/data" import { headers } from "next/headers" export const metadata: Metadata = { - title: "Addresses", - description: "View your addresses", + title: "page.adresses.title", + description: "page.adresses.desc", } export default async function Addresses() { + const t = await getI18n() + metadata.title = t("page.adresses.title") + metadata.description = t("page.adresses.desc") + const nextHeaders = headers() const countryCode = nextHeaders.get("next-url")?.split("/")[1] || "" const customer = await getCustomer() @@ -25,10 +31,11 @@ export default async function Addresses() { return (
-

Shipping Addresses

+

+ {t("page.adresses.shipping.title")} +

- View and update your shipping addresses, you can add as many as you - like. Saving your addresses will make them available during checkout. + {t("page.adresses.shipping.desc")}

diff --git a/src/app/[countryCode]/(main)/account/@dashboard/orders/details/[id]/page.tsx b/src/app/[countryCode]/(main)/account/@dashboard/orders/details/[id]/page.tsx index 62321209b..31dbf12e9 100644 --- a/src/app/[countryCode]/(main)/account/@dashboard/orders/details/[id]/page.tsx +++ b/src/app/[countryCode]/(main)/account/@dashboard/orders/details/[id]/page.tsx @@ -1,6 +1,8 @@ import { Metadata } from "next" import { notFound } from "next/navigation" +import { getI18n } from "../../../../../../../../locales/server" + import { retrieveOrder } from "@lib/data" import OrderDetailsTemplate from "@modules/order/templates/order-details-template" @@ -9,6 +11,7 @@ type Props = { } export async function generateMetadata({ params }: Props): Promise { + const t = await getI18n() const order = await retrieveOrder(params.id).catch(() => null) if (!order) { @@ -16,8 +19,8 @@ export async function generateMetadata({ params }: Props): Promise { } return { - title: `Order #${order.display_id}`, - description: `View your order`, + title: t("page.order.title") + ` #${order.display_id}`, + description: t("page.order.desc"), } } diff --git a/src/app/[countryCode]/(main)/account/@dashboard/orders/page.tsx b/src/app/[countryCode]/(main)/account/@dashboard/orders/page.tsx index 7e5c082bb..6829c3255 100644 --- a/src/app/[countryCode]/(main)/account/@dashboard/orders/page.tsx +++ b/src/app/[countryCode]/(main)/account/@dashboard/orders/page.tsx @@ -1,15 +1,21 @@ import { Metadata } from "next" +import { getI18n } from "../../../../../../locales/server" + import OrderOverview from "@modules/account/components/order-overview" import { listCustomerOrders } from "@lib/data" import { notFound } from "next/navigation" export const metadata: Metadata = { - title: "Orders", - description: "Overview of your previous orders.", + title: "page.orders.title", + description: "page.orders.desc", } export default async function Orders() { + const t = await getI18n() + metadata.title = t("page.orders.title") + metadata.description = t("page.orders.desc") + const orders = await listCustomerOrders() if (!orders) { @@ -19,11 +25,8 @@ export default async function Orders() { return (
-

Orders

-

- View your previous orders and their status. You can also create - returns or exchanges for your orders if needed. -

+

{t("page.orders.title")}

+

{t("page.orders.details")}

diff --git a/src/app/[countryCode]/(main)/account/@dashboard/page.tsx b/src/app/[countryCode]/(main)/account/@dashboard/page.tsx index b90dd6b11..e6f94eacd 100644 --- a/src/app/[countryCode]/(main)/account/@dashboard/page.tsx +++ b/src/app/[countryCode]/(main)/account/@dashboard/page.tsx @@ -1,15 +1,21 @@ import { Metadata } from "next" +import { getI18n } from "../../../../../locales/server" + import { getCustomer, listCustomerOrders } from "@lib/data" import Overview from "@modules/account/components/overview" import { notFound } from "next/navigation" export const metadata: Metadata = { - title: "Account", - description: "Overview of your account activity.", + title: "page.account.title", + description: "page.account.desc", } export default async function OverviewTemplate() { + const t = await getI18n() + metadata.title = t("page.account.title") + metadata.description = t("page.account.desc") + const customer = await getCustomer().catch(() => null) const orders = (await listCustomerOrders().catch(() => null)) || null diff --git a/src/app/[countryCode]/(main)/account/@dashboard/profile/page.tsx b/src/app/[countryCode]/(main)/account/@dashboard/profile/page.tsx index 58043712a..f5a9bb8b1 100644 --- a/src/app/[countryCode]/(main)/account/@dashboard/profile/page.tsx +++ b/src/app/[countryCode]/(main)/account/@dashboard/profile/page.tsx @@ -1,5 +1,7 @@ import { Metadata } from "next" +import { getI18n } from "../../../../../../locales/server" + import ProfilePhone from "@modules/account//components/profile-phone" import ProfileBillingAddress from "@modules/account/components/profile-billing-address" import ProfileEmail from "@modules/account/components/profile-email" @@ -10,11 +12,15 @@ import { getCustomer, listRegions } from "@lib/data" import { notFound } from "next/navigation" export const metadata: Metadata = { - title: "Profile", - description: "View and edit your Medusa Store profile.", + title: "page.profile.title", + description: "page.profile.desc", } export default async function Profile() { + const t = await getI18n() + metadata.title = t("page.profile.title") + metadata.description = t("page.profile.desc") + const customer = await getCustomer() const regions = await listRegions() @@ -25,12 +31,8 @@ export default async function Profile() { return (
-

Profile

-

- View and update your profile information, including your name, email, - and phone number. You can also update your billing address, or change - your password. -

+

{metadata.title}

+

{t("page.profile.details")}

diff --git a/src/app/[countryCode]/(main)/account/@login/page.tsx b/src/app/[countryCode]/(main)/account/@login/page.tsx index 848e21235..3ea728c5f 100644 --- a/src/app/[countryCode]/(main)/account/@login/page.tsx +++ b/src/app/[countryCode]/(main)/account/@login/page.tsx @@ -1,12 +1,18 @@ import { Metadata } from "next" +import { getI18n } from "../../../../../locales/server" + import LoginTemplate from "@modules/account/templates/login-template" export const metadata: Metadata = { - title: "Sign in", - description: "Sign in to your Medusa Store account.", + title: "page.login.title", + description: "page.login.desc", } -export default function Login() { +export default async function Login() { + const t = await getI18n() + metadata.title = t("page.login.title") + metadata.description = t("page.login.desc") + return } diff --git a/src/app/[countryCode]/(main)/cart/not-found.tsx b/src/app/[countryCode]/(main)/cart/not-found.tsx index 91af293ef..e8947f9bf 100644 --- a/src/app/[countryCode]/(main)/cart/not-found.tsx +++ b/src/app/[countryCode]/(main)/cart/not-found.tsx @@ -1,21 +1,28 @@ import { Metadata } from "next" +import { getI18n } from "../../../../locales/server" + import InteractiveLink from "@modules/common/components/interactive-link" export const metadata: Metadata = { title: "404", - description: "Something went wrong", + description: "generic.somethingwrong", } -export default function NotFound() { +export default async function NotFound() { + const t = await getI18n() + + metadata.description = t("generic.somethingwrong") + return (
-

Page not found

+

+ {t("generic.notfound_title")} +

- The cart you tried to access does not exist. Clear your cookies and try - again. + {t("generic.notfound_desc_cart")}

- Go to frontpage + {t("generic.notfound_link")}
) } diff --git a/src/app/[countryCode]/(main)/cart/page.tsx b/src/app/[countryCode]/(main)/cart/page.tsx index 8b3e2e7cb..08abd614d 100644 --- a/src/app/[countryCode]/(main)/cart/page.tsx +++ b/src/app/[countryCode]/(main)/cart/page.tsx @@ -2,6 +2,8 @@ import { LineItem } from "@medusajs/medusa" import { Metadata } from "next" import { cookies } from "next/headers" +import { getI18n } from "../../../../locales/server" + import CartTemplate from "@modules/cart/templates" import { enrichLineItems } from "@modules/cart/actions" @@ -10,8 +12,8 @@ import { CartWithCheckoutStep } from "types/global" import { getCart, getCustomer } from "@lib/data" export const metadata: Metadata = { - title: "Cart", - description: "View your cart", + title: "cart.title", + description: "cart.desc", } const fetchCart = async () => { @@ -40,6 +42,10 @@ const fetchCart = async () => { } export default async function Cart() { + const t = await getI18n() + metadata.title = t("cart.title") + metadata.description = t("cart.desc") + const cart = await fetchCart() const customer = await getCustomer() diff --git a/src/app/[countryCode]/(main)/categories/[...category]/page.tsx b/src/app/[countryCode]/(main)/categories/[...category]/page.tsx index 74fd6584b..bd384f87e 100644 --- a/src/app/[countryCode]/(main)/categories/[...category]/page.tsx +++ b/src/app/[countryCode]/(main)/categories/[...category]/page.tsx @@ -1,6 +1,8 @@ import { Metadata } from "next" import { notFound } from "next/navigation" +import { getI18n } from "../../../../../locales/server" + import { getCategoryByHandle, listCategories, listRegions } from "@lib/data" import CategoryTemplate from "@modules/categories/templates" import { SortOptions } from "@modules/store/components/refinement-list/sort-products" @@ -52,8 +54,11 @@ export async function generateMetadata({ params }: Props): Promise { product_categories[product_categories.length - 1].description ?? `${title} category.` + const t = await getI18n() + const storeName = t("store.name") + return { - title: `${title} | Medusa Store`, + title: `${title} | ${storeName}`, description, alternates: { canonical: `${params.category.join("/")}`, diff --git a/src/app/[countryCode]/(main)/collections/[handle]/page.tsx b/src/app/[countryCode]/(main)/collections/[handle]/page.tsx index 8d29729de..70dc1a5e3 100644 --- a/src/app/[countryCode]/(main)/collections/[handle]/page.tsx +++ b/src/app/[countryCode]/(main)/collections/[handle]/page.tsx @@ -1,6 +1,8 @@ import { Metadata } from "next" import { notFound } from "next/navigation" +import { getI18n } from "../../../../../locales/server" + import { getCollectionByHandle, getCollectionsList, @@ -51,9 +53,13 @@ export async function generateMetadata({ params }: Props): Promise { notFound() } + const t = await getI18n() + const storeName = t("store.name") + const collectionTxt = t("generic.collection") + const metadata = { - title: `${collection.title} | Medusa Store`, - description: `${collection.title} collection`, + title: `${collection.title} | ${storeName}`, + description: `${collection.title} ${collectionTxt}`, } as Metadata return metadata diff --git a/src/app/[countryCode]/(main)/not-found.tsx b/src/app/[countryCode]/(main)/not-found.tsx index d001053f7..9acf4da49 100644 --- a/src/app/[countryCode]/(main)/not-found.tsx +++ b/src/app/[countryCode]/(main)/not-found.tsx @@ -1,3 +1,4 @@ +import { getI18n } from "../../../locales/server" import { Metadata } from "next" import InteractiveLink from "@modules/common/components/interactive-link" @@ -7,14 +8,20 @@ export const metadata: Metadata = { description: "Something went wrong", } -export default function NotFound() { +export default async function NotFound() { + const t = await getI18n() + + metadata.description = t("generic.somethingwrong") + return (
-

Page not found

+

+ {t("generic.notfound_title")} +

- The page you tried to access does not exist. + {t("generic.notfound_desc")}

- Go to frontpage + {t("generic.notfound_link")}
) } diff --git a/src/app/[countryCode]/(main)/order/confirmed/[id]/page.tsx b/src/app/[countryCode]/(main)/order/confirmed/[id]/page.tsx index dd05b7739..419667fa8 100644 --- a/src/app/[countryCode]/(main)/order/confirmed/[id]/page.tsx +++ b/src/app/[countryCode]/(main)/order/confirmed/[id]/page.tsx @@ -1,5 +1,7 @@ import { Metadata } from "next" +import { getI18n } from "../../../../../../locales/server" + import { retrieveOrder } from "@lib/data" import { LineItem, Order } from "@medusajs/medusa" import { enrichLineItems } from "@modules/cart/actions" @@ -28,11 +30,15 @@ async function getOrder(id: string) { } export const metadata: Metadata = { - title: "Order Confirmed", - description: "You purchase was successful", + title: "order.confirmed_title", + description: "oder.confirmed_desc", } export default async function OrderConfirmedPage({ params }: Props) { + const t = await getI18n() + metadata.title = t("order.confirmed_title") + metadata.description = t("order.confirmed_desc") + const { order } = await getOrder(params.id) return diff --git a/src/app/[countryCode]/(main)/page.tsx b/src/app/[countryCode]/(main)/page.tsx index 1724fb1a7..ae40209ba 100644 --- a/src/app/[countryCode]/(main)/page.tsx +++ b/src/app/[countryCode]/(main)/page.tsx @@ -1,6 +1,8 @@ import { Product } from "@medusajs/medusa" import { Metadata } from "next" +import { getI18n } from "../../../locales/server" + import { getCollectionsList, getProductsList, getRegion } from "@lib/data" import FeaturedProducts from "@modules/home/components/featured-products" import Hero from "@modules/home/components/hero" @@ -8,9 +10,8 @@ import { ProductCollectionWithPreviews } from "types/global" import { cache } from "react" export const metadata: Metadata = { - title: "Medusa Next.js Starter Template", - description: - "A performant frontend ecommerce starter template with Next.js 14 and Medusa.", + title: "store.title", + description: "store.desc", } const getCollectionsWithProducts = cache( @@ -59,6 +60,10 @@ export default async function Home({ }: { params: { countryCode: string } }) { + const t = await getI18n() + metadata.title = t("store.title") + metadata.description = t("store.desc") + const collections = await getCollectionsWithProducts(countryCode) const region = await getRegion(countryCode) diff --git a/src/app/[countryCode]/(main)/results/[query]/page.tsx b/src/app/[countryCode]/(main)/results/[query]/page.tsx index 594a2ddf3..91bc1a7ac 100644 --- a/src/app/[countryCode]/(main)/results/[query]/page.tsx +++ b/src/app/[countryCode]/(main)/results/[query]/page.tsx @@ -1,13 +1,15 @@ import { Metadata } from "next" +import { getI18n } from "../../../../../locales/server" + import SearchResultsTemplate from "@modules/search/templates/search-results-template" import { search } from "@modules/search/actions" import { SortOptions } from "@modules/store/components/refinement-list/sort-products" export const metadata: Metadata = { - title: "Search", - description: "Explore all of our products.", + title: "search.title", + description: "search.desc", } type Params = { @@ -19,6 +21,10 @@ type Params = { } export default async function SearchResults({ params, searchParams }: Params) { + const t = await getI18n() + metadata.title = t("search.title") + metadata.description = t("search.desc") + const { query } = params const { sortBy, page } = searchParams diff --git a/src/app/[countryCode]/(main)/store/page.tsx b/src/app/[countryCode]/(main)/store/page.tsx index 753ba05f5..c95def950 100644 --- a/src/app/[countryCode]/(main)/store/page.tsx +++ b/src/app/[countryCode]/(main)/store/page.tsx @@ -1,11 +1,13 @@ import { Metadata } from "next" +import { getI18n } from "../../../../locales/server" + import { SortOptions } from "@modules/store/components/refinement-list/sort-products" import StoreTemplate from "@modules/store/templates" export const metadata: Metadata = { - title: "Store", - description: "Explore all of our products.", + title: "store.products.title", + description: "store.products.desc", } type Params = { @@ -19,6 +21,10 @@ type Params = { } export default async function StorePage({ searchParams, params }: Params) { + const t = await getI18n() + metadata.title = t("store.products.title") + metadata.description = t("store.products.desc") + const { sortBy, page } = searchParams return ( diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index ece9db8db..0fd1f5910 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -2,24 +2,30 @@ import { ArrowUpRightMini } from "@medusajs/icons" import { Text } from "@medusajs/ui" import { Metadata } from "next" import Link from "next/link" +import { getI18n } from "../locales/server" export const metadata: Metadata = { title: "404", description: "Something went wrong", } -export default function NotFound() { +export default async function NotFound() { + const t = await getI18n() + + metadata.description = t("generic.somethingwrong") + return (
-

Page not found

+

+ {t("generic.notfound_title")} +

- The page you tried to access does not exist. + {t("generic.notfound_desc")}

- - Go to frontpage + + + {t("generic.notfound_link")} + Magas", + "store.price_desc": "Ár: Magas -> Alacsony", "store.sort": "Rendezés", - "store.all": "Minden termék", - "store.": "", - + "store.all": "Összes termék", + "store.": "", + + "search.title": "Keresés", + "search.desc": "Fedezd fel összes termékünket.", "search.searchresults": "Keresési eredmények erre:", "search.clear": "Törlés", "search.noresults": "Nincs találat.", "search.": "", - - "product.select": "Kiválasztás", + + "product.select": "Választás", "product.variant": "Változat kiválasztása", "product.outof": "Nincs készleten", "product.addtocart": "Kosárba", - "product.pricefrom": "Ettől: ", - "product.priceoriginal": "Eredeti ár: ", + "product.pricefrom": "Ár tól", + "product.priceoriginal": "Eredeti: ", "product.info": "Termékinformáció", "product.shipping": "Szállítás és visszaküldés", "product.material": "Anyag", "product.origin_country": "Származási ország", "product.type": "Típus", "product.weight": "Súly", - "product.dimensions": "Méret", + "product.dimensions": "Méretek", "product.tags": "Címkék", "product.fastdelivery_title": "Gyors szállítás", "product.fastdelivery_desc": "A csomag 3-5 munkanapon belül megérkezik az átvételi helyre vagy otthonába.", "product.simpleexchanges_title": "Egyszerű csere", - "product.simpleexchanges_desc": "Nem jó a méret? Ne aggódjon - kicseréljük a terméket egy újra.", - "product.easyreturns_title": "Egyszerű visszaküldés", - "product.easyreturns_desc": "Csak küldje vissza a terméket, és visszatérítjük a pénzét. Kérdés nélkül – mindent megteszünk, hogy a visszaküldés zökkenőmentes legyen.", + "product.simpleexchanges_desc": "Nem megfelelő a méret? Ne aggódjon - kicseréljük egy másikra.", + "product.easyreturns_title": "Könnyű visszaküldés", + "product.easyreturns_desc": "Csak küldje vissza a terméket, és visszatérítjük a pénzét. Kérdések nélkül – igyekszünk gondtalanul intézni a visszaküldést.", "product.related": "Kapcsolódó termékek", - "product.related_sub": "Érdemes megnézni ezeket a termékeket is.", + "product.related_sub": "Ezeket a termékeket is érdemes megnézni.", "product.variant_lineitem": "Változat: ", "product.": "", + "order.confirmed_title": "Rendelés megerősítve", + "order.confirmed_desc": "A vásárlás sikeres volt", "order.back": "Vissza az áttekintéshez", "order.details": "Rendelési adatok", "order.thanks": "Köszönjük!", - "order.success": "A rendelése sikeresen leadva.", + "order.success": "A rendelés sikeresen megtörtént.", "order.summary": "Összegzés", - "order.testorder": "A tesztrendelése sikeresen létrejött!", - "order.testordercomplete": "Most befejezheti boltjának beállítását az adminisztrációban.", - "order.testcomplete": "Befejezés az adminisztrációban", - "order.sentconfirmation": "A rendelési visszaigazolást elküldtük a következő címre:", + "order.testorder": "A tesztrendelés sikeresen létrejött!", + "order.testordercomplete": "Most befejezheti az áruház beállítását az adminban.", + "order.testcomplete": "Beállítás befejezése az adminban", + "order.sentconfirmation": "Az rendelés megerősítési adatokat elküldtük", "order.date": "Rendelés dátuma: ", - "order.number": "Rendelésszám: ", - "order.status": "Rendelés állapota:", + "order.number": "Rendelési szám: ", + "order.status": "Rendelés státusza:", "order.paymentstatus": "Fizetési állapot:", "order.subtotal": "Részösszeg", "order.discount_total": "Kedvezmény", @@ -85,12 +181,88 @@ export default { "order.contact": "Kapcsolat", "order.method": "Módszer", "order.": "", - + "help.title": "Segítségre van szüksége?", "help.contact": "Kapcsolat", "help.returns": "Visszaküldés és csere", - - "footer.store": "Medusa Bolt", + + "account.save": "Módosítások mentése", + "account.updated": " sikeresen frissítve", + "account.cancel": "Mégse", + "account.edit": "Szerkesztés", + "account.account": "Fiók", + "account.overview": "Áttekintés", + "account.profile": "Profil", + "account.addresses": "Címek", + "account.orders": "Rendelések", + "account.logout": "Kijelentkezés", + + "account.address.new": "Új cím", + "account.address.add": "Cím hozzáadása", + "account.address.save": "Mentés", + "account.address.edit": "Szerkesztés", + "account.address.remove": "Eltávolítás", + "account.address.editaddress": "Cím szerkesztése", + "account.address.cancel": "Mégse", + "account.address.name": "Név", + "account.address.first_name": "Keresztnév", + "account.address.last_name": "Vezetéknév", + "account.address.company": "Cég", + "account.address.address-line1": "Cím", + "account.address.address-line2": "Lakás, épület, stb.", + "account.address.postal_code": "Irányítószám", + "account.address.city": "Város", + "account.address.province": "Megye / Állam", + "account.address.country_code": "Ország", + "account.address.phone": "Telefon", + "account.address.same_as_billing": "Számlázási cím megegyezik a szállítási címmel", + "account.address.billing_address": "Számlázási cím", + "account.address.no_billing_address": "Nincs számlázási cím", + "account.address.email": "E-mail", + + "account.password": "Jelszó", + "account.old_password": "Régi jelszó", + "account.new_password": "Új jelszó", + "account.confirm_password": "Jelszó megerősítése", + + "account.register.register_title": "Legyen tag", + "account.register.register_desc": "Hozza létre az áruház fiókját, és élvezze a fejlettebb vásárlási élményt.", + "account.register.aggreement": "Fiók létrehozásával elfogadja az áruház ", + "account.register.pp": "Adatvédelmi irányelveit", + "account.register.and": "és", + "account.register.tou": "Felhasználási feltételeit", + "account.register.join": "Csatlakozás", + "account.register.member": "Már tag?", + + "account.login.welcome": "Üdvözöljük újra", + "account.login.welcome_desc": "Jelentkezzen be, hogy hozzáférjen a fejlettebb vásárlási élményhez.", + "account.login.email": "E-mail", + "account.login.email_desc": "Adjon meg egy érvényes e-mail címet.", + "account.login.password": "Jelszó", + "account.login.signin": "Bejelentkezés", + "account.login.notamember": "Még nem tag?", + "account.login.join": "Csatlakozzon hozzánk", + "account.orders.details": "Részletek megtekintése", + "account.orders.more": " további", + "account.orders.noorder": "Nincs itt semmi látnivaló", + "account.orders.noorder_desc": "Még nincsenek rendelései, változtassunk ezen!", + "account.orders.continueshopping": "Vásárlás folytatása", + "account.question": "Van kérdése?", + "account.question_desc": "A gyakori kérdéseket és válaszokat megtalálhatja az ügyfélszolgálati oldalunkon.", + "account.service": "Ügyfélszolgálat", + "account.overview.hello": "Helló ", + "account.overview.signedinas": "Bejelentkezve mint:", + "account.overview.completed": "Befejezve", + "account.overview.addresses": "Címek", + "account.overview.saved": "Mentve", + "account.overview.recent": "Legutóbbi rendelések", + "account.overview.ordernumber": "Rendelési szám", + "account.overview.total": "Teljes összeg", + "account.overview.goto": "Rendelés megtekintése ", + "account.overview.norecent": "Nincsenek friss rendelések", + "account.": "", + + "footer.store": "Medusa Áruház", "footer.categories": "Kategóriák", "footer.collections": "Kollekciók", "footer.rights": "Minden jog fenntartva.", diff --git a/src/locales/us.ts b/src/locales/us.ts index da0e98965..86128d147 100644 --- a/src/locales/us.ts +++ b/src/locales/us.ts @@ -1,13 +1,45 @@ export default { + "store.name": "Store", + "store.products.title": "Store", + "store.products.desc": "Explore all of our products.", + "store.title": "Medusa Next.js Starter Template", + "store.desc": "A performant frontend ecommerce starter template with Next.js 14 and Medusa.", + "generic.somethingwrong": "Something went wrong", - "generic.edit": "Something went wrong", + "generic.edit": "Edit", "generic.apply": "Apply", + "generic.back": "Back", + "generic.collection": " collection", + "generic.notfound_title": "Page not found", + "generic.notfound_desc": "The page you tried to access does not exist.", + "generic.notfound_desc_cart": "The cart you tried to access does not exist. Clear your cookies and try again.", + "generic.notfound_link": "Go to frontpage", + + "page.login.title": "Sign in", + "page.login.desc": "Sign in to your Medusa Store account.", + "page.account.title": "Account", + "page.account.desc": "Overview of your account activity.", + "page.profile.title": "Profile", + "page.profile.desc": "View and edit your Medusa Store profile.", + "page.profile.details": "View and update your profile information, including your name, email, and phone number. You can also update your billing address, or change your password.", + "page.orders.title": "Orders", + "page.orders.desc": "Overview of your previous orders.", + "page.orders.details": "View your previous orders and their status. You can also create returns or exchanges for your orders if needed.", + "page.order.title": "Order ", + "page.order.desc": "View your order", + "page.adresses.title": "Addresses", + "page.adresses.desc": "View your addresses" , + "page.adresses.shipping.title": "Shipping Addresses", + "page.adresses.shipping.desc": "View and update your shipping addresses, you can add as many as you like. Saving your addresses will make them available during checkout.", + "nav.title": "Store", "nav.search": "Search", "nav.account": "Account", "nav.cart": "Cart", + "cart.title": "Cart", + "cart.desc": "View your cart", "cart.subtotal": "Subtotal", "cart.discount": "Discount", "cart.shipping": "Shipping", @@ -26,7 +58,9 @@ export default { "cart.empty_prompt1": "You don't have anything in your cart. Let's change that, use the link below to start browsing our products.", "cart.empty_prompt2": "Explore products", "cart.": "", - + + "checkout.title": "Checkout", + "checkout.back": "Back to shopping cart", "checkout.inyourcart": "In your Cart", "checkout.chooseaddress": "Choose an address", "checkout.shipping_address": "Shipping Address", @@ -86,6 +120,8 @@ export default { "store.all": "All products", "store.": "", + "search.title": "Search", + "search.desc": "Explore all of our products.", "search.searchresults": "Search Results for:", "search.clear": "Clear", "search.noresults": "No results.", @@ -116,6 +152,8 @@ export default { "product.variant_lineitem": "Variant: ", "product.": "", + "order.confirmed_title": "Order Confirmed", + "order.confirmed_desc": "You purchase was successful", "order.back": "Back to overview", "order.details": "Order details", "order.thanks": "Thank you!", diff --git a/src/modules/checkout/templates/checkout-summary/index.tsx b/src/modules/checkout/templates/checkout-summary/index.tsx index 61abfde9b..542da2237 100644 --- a/src/modules/checkout/templates/checkout-summary/index.tsx +++ b/src/modules/checkout/templates/checkout-summary/index.tsx @@ -10,7 +10,7 @@ import { cookies } from "next/headers" import { getCart } from "@lib/data" const CheckoutSummary = async () => { - const t = await getScopedI18n("cart") + const t = await getScopedI18n("checkout") const cartId = cookies().get("_medusa_cart_id")?.value if (!cartId) {