feat(layout): 🌐 english first and i18n provider wrapped
This commit is contained in:
parent
39b84996d1
commit
69c84c0fa9
1 changed files with 16 additions and 13 deletions
|
|
@ -5,12 +5,13 @@ import { GeistMono } from "geist/font/mono"
|
|||
import { Analytics } from "@vercel/analytics/next"
|
||||
import { Toaster } from "sonner"
|
||||
import { NotificationProvider } from "@/contexts/notification-context"
|
||||
import { I18nProvider } from "@/lib/i18n"
|
||||
import "./globals.css"
|
||||
import { Suspense } from "react"
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "GoHorseJobs - Encontre sua próxima oportunidade",
|
||||
description: "Conectamos candidatos e empresas de forma rápida e direta",
|
||||
title: "GoHorseJobs - Find your next opportunity",
|
||||
description: "Connecting candidates and companies quickly and directly",
|
||||
generator: "v0.app",
|
||||
icons: {
|
||||
icon: "/logohorse.png",
|
||||
|
|
@ -25,18 +26,20 @@ export default function RootLayout({
|
|||
children: React.ReactNode
|
||||
}>) {
|
||||
return (
|
||||
<html lang="pt-BR">
|
||||
<html lang="en">
|
||||
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable} antialiased`}>
|
||||
<NotificationProvider>
|
||||
<Suspense fallback={<div>Loading...</div>}>{children}</Suspense>
|
||||
<Toaster
|
||||
position="top-right"
|
||||
richColors
|
||||
closeButton
|
||||
expand={false}
|
||||
duration={4000}
|
||||
/>
|
||||
</NotificationProvider>
|
||||
<I18nProvider>
|
||||
<NotificationProvider>
|
||||
<Suspense fallback={<div>Loading...</div>}>{children}</Suspense>
|
||||
<Toaster
|
||||
position="top-right"
|
||||
richColors
|
||||
closeButton
|
||||
expand={false}
|
||||
duration={4000}
|
||||
/>
|
||||
</NotificationProvider>
|
||||
</I18nProvider>
|
||||
<Analytics />
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue