This commit is contained in:
2026-04-21 07:37:18 +03:30
commit 96a79795c1
39 changed files with 3625 additions and 0 deletions

32
app/[locale]/page.js Normal file
View File

@@ -0,0 +1,32 @@
import { notFound } from "next/navigation";
import { LandingPage } from "@/components/site/landing-page";
import { getLandingContent, isSupportedLocale, locales } from "@/lib/site-data";
export function generateStaticParams() {
return locales.map((locale) => ({ locale }));
}
export async function generateMetadata({ params }) {
const { locale } = await params;
if (!isSupportedLocale(locale)) {
return {};
}
const content = getLandingContent(locale);
return {
title: content.meta.title,
description: content.meta.description,
};
}
export default async function LocaleHomePage({ params }) {
const { locale } = await params;
if (!isSupportedLocale(locale)) {
notFound();
}
return <LandingPage locale={locale} content={getLandingContent(locale)} />;
}