- Updated Header.tsx to use current locale in navigation links for proper routing - Increased MiniSparkline chart dimensions in market-stats.tsx for better visibility - Added under-construction translations for market, about, and prices pages in en.json and pt.json - Minor formatting adjustments with added blank lines across multiple components These changes improve internationalization and user experience by ensuring locale-aware navigation and providing informative placeholders for upcoming features.
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono, Nunito_Sans } from "next/font/google";
|
|
import { NextIntlClientProvider } from "next-intl";
|
|
import { getMessages } from "next-intl/server";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import "../globals.css";
|
|
|
|
const nunitoSans = Nunito_Sans({
|
|
variable: "--font-nunito-sans",
|
|
subsets: ["latin"],
|
|
weight: ["200", "300", "400", "500", "600", "700", "800", "900"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Pagodera Trade",
|
|
description: "Markeplace servidor pagodera",
|
|
};
|
|
|
|
export default async function LocaleLayout({
|
|
children,
|
|
params,
|
|
}: {
|
|
children: React.ReactNode;
|
|
params: Promise<{ locale: string }>;
|
|
}) {
|
|
const { locale } = await params;
|
|
const messages = await getMessages();
|
|
|
|
return (
|
|
<html lang={locale} suppressHydrationWarning>
|
|
<body
|
|
className={`${nunitoSans.variable} ${geistMono.variable} antialiased`}
|
|
>
|
|
<NextIntlClientProvider messages={messages}>
|
|
<ThemeProvider attribute="class" defaultTheme="dark">
|
|
{children}
|
|
</ThemeProvider>
|
|
</NextIntlClientProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|
|
|
|
|
|
|
|
|
|
|