78 lines
2.2 KiB
TypeScript
78 lines
2.2 KiB
TypeScript
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>
|
||
);
|
||
}
|