fix locale, meta data

This commit is contained in:
Rama Priyanto 2025-03-14 15:54:37 +07:00
parent a2c04393db
commit aa7e92fedb
2 changed files with 18 additions and 23 deletions

View File

@ -8,35 +8,30 @@ import clsx from "clsx";
import { Metadata } from "next";
import { Providers } from "./providers";
import LoadScript from "@/utils/global";
import { NextIntlClientProvider } from "next-intl";
import { type ReactNode } from "react";
import storedLanguage from "@/store/language-store";
const inter = Inter({ subsets: ["latin"] });
// export const metadata: Metadata = {
// title: {
// default: siteConfig.name,
// template: `%s - ${siteConfig.name}`,
// },
// description: siteConfig.description,
// themeColor: [
// { media: "(prefers-color-scheme: light)", color: "white" },
// { media: "(prefers-color-scheme: dark)", color: "black" },
// ],
// icons: {
// icon: "/logohumas.ico",
// shortcut: "/favicon-16x16.png",
// apple: "/apple-touch-icon.png",
// },
// };
export const metadata: Metadata = {
title: {
default: siteConfig.name,
template: `%s - ${siteConfig.name}`,
},
description: siteConfig.description,
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "white" },
{ media: "(prefers-color-scheme: dark)", color: "black" },
],
icons: {
icon: "/logohumas.ico",
shortcut: "/favicon-16x16.png",
apple: "/apple-touch-icon.png",
},
};
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en" suppressHydrationWarning className="scroll-smooth">
<html suppressHydrationWarning className="scroll-smooth">
<head>
<title>
DIVISI HUMAS POLRI - Pengelolaan Informasi & Dokumentasi Polri
</title>
<meta
name="theme-color"
content="white"

View File

@ -34,7 +34,7 @@ export function Providers({ children, themeProps }: ProvidersProps) {
}, [locale]);
return (
<NextIntlClientProvider locale={locale} messages={messages}>
<NextIntlClientProvider locale={localeNow} messages={messages}>
<HeroUIProvider navigate={router.push}>
<NextThemesProvider {...themeProps}>{children}</NextThemesProvider>
</HeroUIProvider>