source: src/app/layout.tsx@ 50f2fb4

Last change on this file since 50f2fb4 was 50f2fb4, checked in by Stefan-Saveski <stefansaveski19@…>, 8 months ago

Added dual language feature.

  • Property mode set to 100644
File size: 867 bytes
RevLine 
[50f2fb4]1"use client";
[65f7b64]2import { Geist, Geist_Mono } from "next/font/google";
3import "./globals.css";
[6b8332f]4import '@fortawesome/fontawesome-svg-core/styles.css';
5import { config } from '@fortawesome/fontawesome-svg-core';
[50f2fb4]6import { I18nextProvider } from 'react-i18next';
7import i18n from '../i18n';
[875f7d6]8
9config.autoAddCss = false;
[65f7b64]10
11const geistSans = Geist({
12 variable: "--font-geist-sans",
13 subsets: ["latin"],
14});
15
16const geistMono = Geist_Mono({
17 variable: "--font-geist-mono",
18 subsets: ["latin"],
19});
20
21export default function RootLayout({
22 children,
23}: Readonly<{
24 children: React.ReactNode;
25}>) {
26 return (
27 <html lang="en">
[50f2fb4]28 <body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
29 <I18nextProvider i18n={i18n}>
30 <div className="mx-auto max-w-6xl px-4">{children}</div>
31 </I18nextProvider>
[65f7b64]32 </body>
33 </html>
34 );
[6b8332f]35}
Note: See TracBrowser for help on using the repository browser.