103 lines
3.0 KiB
TypeScript
103 lines
3.0 KiB
TypeScript
import type { Metadata } from "next";
|
||
import { Geist, Geist_Mono } from "next/font/google";
|
||
import { Analytics } from "@vercel/analytics/next";
|
||
import { LanguageProvider } from "@/contexts/language-context";
|
||
import "./globals.css";
|
||
|
||
// Fonts
|
||
const _geist = Geist({ subsets: ["latin"] });
|
||
const _geistMono = Geist_Mono({ subsets: ["latin"] });
|
||
|
||
// ---------------------------------------------
|
||
// MULTI-LANGUAGE SEO METADATA (UZ / RU / EN)
|
||
// ---------------------------------------------
|
||
export const metadata: Metadata = {
|
||
title:
|
||
"DWATT – Elektr zaryadlash stansiyalarini boshqarish tizimi | EV Charging Management Platform",
|
||
description:
|
||
"Dwatt – elektromobil zaryadlash stansiyalarini boshqarish, monitoring va avtomatlashtirish uchun yaratilgan platforma.",
|
||
keywords: [
|
||
"dwatt",
|
||
"dwatt.uz",
|
||
"ev charging uz",
|
||
"заправка электромобилей",
|
||
"ev charging management",
|
||
"зарядная станция",
|
||
"ev charger software",
|
||
"uzbekistan ev charging",
|
||
"charging management platform",
|
||
],
|
||
authors: [{ name: "DWATT" }],
|
||
robots: "index, follow",
|
||
themeColor: "#004CEE",
|
||
metadataBase: new URL("https://dwatt.uz"),
|
||
|
||
// MULTILINGUAL SUPPORT FOR SEO
|
||
alternates: {
|
||
canonical: "https://dwatt.uz",
|
||
languages: {
|
||
"uz-UZ": "https://dwatt.uz/uz",
|
||
"ru-RU": "https://dwatt.uz/ru",
|
||
"en-US": "https://dwatt.uz/en",
|
||
},
|
||
},
|
||
|
||
// SOCIAL SHARE (Open Graph)
|
||
openGraph: {
|
||
type: "website",
|
||
url: "https://dwatt.uz",
|
||
siteName: "DWATT",
|
||
title:
|
||
"DWATT – EV Charging Management Platform | Elektr zaryadlash boshqaruvi",
|
||
description:
|
||
"Elektromobil zaryadlash stansiyalarini boshqarish, monitoring qilish va avtomatlashtirish uchun mo'ljallangan professional tizim.",
|
||
images: [
|
||
{
|
||
url: "https://dwatt.uz/og-image.png",
|
||
width: 1200,
|
||
height: 630,
|
||
alt: "DWATT EV Charging Platform",
|
||
},
|
||
],
|
||
},
|
||
|
||
// TWITTER SEO
|
||
twitter: {
|
||
card: "summary_large_image",
|
||
title: "DWATT – Elektr zaryadlash stansiyalarini boshqarish tizimi",
|
||
description:
|
||
"Dwatt elektromobil zaryadlash stansiyalarini boshqarish uchun yaratilgan professional tizim.",
|
||
images: ["https://dwatt.uz/og-image.png"],
|
||
site: "@dwatt",
|
||
},
|
||
|
||
icons: {
|
||
icon: [
|
||
{ url: "/icon-light-32x32.png", media: "(prefers-color-scheme: light)" },
|
||
{ url: "/icon-dark-32x32.png", media: "(prefers-color-scheme: dark)" },
|
||
{ url: "/icon.svg", type: "image/svg+xml" },
|
||
],
|
||
apple: "/apple-icon.png",
|
||
},
|
||
};
|
||
|
||
// ---------------------------------------------
|
||
// ROOT LAYOUT WITH MULTI-LANGUAGE SUPPORT
|
||
// ---------------------------------------------
|
||
export default function RootLayout({
|
||
children,
|
||
}: {
|
||
children: React.ReactNode;
|
||
}) {
|
||
return (
|
||
<html lang="uz" suppressHydrationWarning>
|
||
<body className={`antialiased font-sans`}>
|
||
<LanguageProvider>
|
||
{children}
|
||
</LanguageProvider>
|
||
<Analytics />
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|