import { getTranslations, setRequestLocale } from "next-intl/server"; import Header from "@/components/layout/Header"; import Footer from "@/components/layout/Footer"; import { getPageMetadata } from "@/lib/i18n/pageMetadata"; import { isValidLocale, DEFAULT_LOCALE, type Locale } from "@/lib/i18n/locales"; interface AboutPageProps { params: Promise<{ locale: string }>; } export async function generateMetadata({ params }: AboutPageProps) { const { locale } = await params; const validLocale = isValidLocale(locale) ? locale : DEFAULT_LOCALE; const metadata = getPageMetadata(validLocale as Locale); return { title: metadata.about.title, description: metadata.about.description, }; } export default async function AboutPage({ params }: AboutPageProps) { const { locale } = await params; const validLocale = isValidLocale(locale) ? locale : DEFAULT_LOCALE; const metadata = getPageMetadata(validLocale as Locale); setRequestLocale(validLocale); const t = await getTranslations("About"); return ( <>
{t("subtitle")}

{t("title")}

{metadata.productionAlt}

{t("intro")}

{t("intro2")}

{t("naturalIngredients")}

{t("naturalIngredientsDesc")}

{t("crueltyFree")}

{t("crueltyFreeDesc")}

{t("sustainablePackaging")}

{t("sustainablePackagingDesc")}

{t("handcraftedQuality")}

{t("handcraftedQualityDesc")}

{t("mission")}
“{t("missionQuote")}”

{t("handmadeTitle")}

{t("handmadeText1")}

{t("handmadeText2")}

); }