site/src/app/[locale]/page.tsx
Dariusz Niemczyk 9a6d46a826
Cebula.
2025-02-09 00:47:59 +01:00

18 lines
410 B
TypeScript

import LandingPage from "@/components/landing-page";
import { getLocale, Lang } from "@/i18n/locales";
import { translations } from "@/i18n/translations";
export default async function Home(
{ params }
:
{ params: Promise<{ locale: Lang }> }
) {
const { locale } = await params
const currentLocale = getLocale(locale)
const t = translations[currentLocale];
return <LandingPage t={t} />
}