Files
ayris-legal-main/app/[locale]/layout.tsx
T
2026-08-09 11:20:13 +03:00

78 lines
2.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { Metadata } from "next";
import { Archivo } from "next/font/google";
import { NextIntlClientProvider } from 'next-intl';
import { getMessages, setRequestLocale } from 'next-intl/server';
import { notFound } from 'next/navigation';
import { routing } from '@/i18n/routing';
import "../globals.css";
const archivo = Archivo({
subsets: ["latin"],
variable: "--font-archivo",
display: "swap",
});
export const metadata: Metadata = {
title: {
default: "AyrisLegal — Hukuki Düşünce Ortağınız",
template: "%s | AyrisLegal",
},
description:
"AyrisLegal, solo ve küçük büro avukatları için yapay zeka destekli hukuki asistanıdır. Dosya analizi, çok turlu hukuki sohbet ve emsal karar arama tek bir platformda.",
keywords: ["avukat yazılımı", "hukuki yapay zeka", "emsal karar arama", "hukuk ofisi yönetim", "AyrisLegal"],
authors: [{ name: "ayris.tech", url: "https://ayris.tech" }],
creator: "ayris.tech",
openGraph: {
type: "website",
locale: "tr_TR",
siteName: "AyrisLegal",
title: "AyrisLegal — Hukuki Düşünce Ortağınız",
description:
"Pasif araştırma değil, aktif düşünce ortağı. Avukatlar için yapay zeka destekli hukuki asistan.",
},
twitter: {
card: "summary_large_image",
title: "AyrisLegal — Hukuki Düşünce Ortağınız",
description:
"Pasif araştırma değil, aktif düşünce ortağı. Avukatlar için yapay zeka destekli hukuki asistan.",
},
robots: {
index: true,
follow: true,
},
};
export function generateStaticParams() {
return routing.locales.map((locale) => ({locale}));
}
export default async function RootLayout({
children,
params
}: Readonly<{
children: React.ReactNode;
params: Promise<{ locale: string }>;
}>) {
const { locale } = await params;
if (!routing.locales.includes(locale as any)) {
notFound();
}
setRequestLocale(locale);
const messages = await getMessages();
return (
<html
lang={locale}
className={`${archivo.variable} h-full antialiased`}
>
<body className="min-h-full flex flex-col" suppressHydrationWarning>
<NextIntlClientProvider messages={messages}>
{children}
</NextIntlClientProvider>
</body>
</html>
);
}