From ed4363e5235d5cdd9efc7e50bcb45e93e1f2cbe4 Mon Sep 17 00:00:00 2001 From: "nabijonovdavronbek619@gmail.com" Date: Thu, 19 Feb 2026 12:06:24 +0500 Subject: [PATCH] openGraph updated for three language --- app/layout.tsx | 133 +++++++++++++++++++++++-------------------------- 1 file changed, 61 insertions(+), 72 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 58aebe5..0b6ab4a 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -18,6 +18,32 @@ const geistMono = Geist_Mono({ subsets: ["latin"], }); +// openGraphData tipini aniq belgilaymiz +const openGraphData: Record< + "uz" | "ru" | "en", + { title: string; description: string; locale: string } +> = { + uz: { + title: "Ignum Technologies - Professional Fire Safety Systems", + description: + "Tijorat va uy-joy ob’ektlari uchun yong‘in aniqlash, bostirish va signalizatsiya tizimlarini o‘z ichiga olgan to‘liq yong‘in himoyasi yechimlari.", + locale: "uz_UZ", + }, + ru: { + title: + "Ignum Technologies - Профессиональные системы пожарной безопасности", + description: + "Полные решения по пожарной защите, включая системы обнаружения, тушения и сигнализации для коммерческих и жилых объектов.", + locale: "ru_RU", + }, + en: { + title: "Ignum Technologies - Professional Fire Safety Systems", + description: + "Comprehensive fire protection solutions including detection, suppression, and alarm systems for commercial and residential properties.", + locale: "en_US", + }, +}; + export const metadata: Metadata = { title: { default: "Ignum Technologies - Fire Safety Systems Installation & Sales", @@ -39,99 +65,62 @@ export const metadata: Metadata = { authors: [{ name: "Ignum Technologies" }], creator: "Ignum Technologies", publisher: "Ignum Technologies", - formatDetection: { - email: false, - address: false, - telephone: false, - }, - metadataBase: new URL("https://ignum-tech.com"), // O'zingizning domen manzilingizni kiriting for gitea - alternates: { - canonical: "/", - }, - openGraph: { - type: "website", - locale: "uz_UZ", - url: "https://ignum-tech.com", - siteName: "Ignum Technologies", - title: "Ignum Technologies - Professional Fire Safety Systems", - description: - "Leading provider of fire safety systems installation and sales. Comprehensive fire protection solutions including detection, suppression, and alarm systems for commercial and residential properties.", - images: [ - { - url: "/og-image.jpg", // 1200x630 o'lchamda rasm qo'shing - width: 1200, - height: 630, - alt: "Ignum Technologies - Fire Safety Systems", - }, - { - url: "/og-image-square.jpg", // 1200x1200 o'lchamda rasm qo'shing - width: 1200, - height: 1200, - alt: "Ignum Technologies Logo", - }, - ], - }, - twitter: { - card: "summary_large_image", - title: "Ignum Technologies - Fire Safety Systems Installation & Sales", - description: - "Professional fire safety systems installation and sales. Protect your property with certified fire detection, suppression, and alarm solutions.", - images: ["/twitter-image.jpg"], // 1200x600 o'lchamda rasm qo'shing - creator: "@ignumtech", // Twitter username-ingizni kiriting - }, - robots: { - index: true, - follow: true, - googleBot: { - index: true, - follow: true, - "max-video-preview": -1, - "max-image-preview": "large", - "max-snippet": -1, - }, - }, + formatDetection: { email: false, address: false, telephone: false }, + metadataBase: new URL("https://ignum-tech.com"), + alternates: { canonical: "/" }, 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", - }, + { 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", }, - verification: { - google: "your-google-verification-code", // Google Search Console verification kodi - // yandex: "your-yandex-verification-code", // Agar kerak bo'lsa - }, + verification: { google: "your-google-verification-code" }, }; export default async function RootLayout({ children, params, -}: Readonly<{ - children: React.ReactNode; - params: any; -}>) { +}: Readonly<{ children: React.ReactNode; params: any }>) { const { locale } = await params; const messages: any = await getMessages(); + // Locale ga mos Open Graph ma'lumotini tanlaymiz + const og = openGraphData[locale as "uz" | "ru" | "en"] || openGraphData["uz"]; + return ( - {/* Qo'shimcha SEO elementlar */} + + {/* Open Graph */} + + + + + + + + + + + + {/* Twitter */} + + + + + + + {/* Yandex Metrika */}