|
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
|
| Line | |
|---|
| 1 | "use client";
|
|---|
| 2 | import { Geist, Geist_Mono } from "next/font/google";
|
|---|
| 3 | import "./globals.css";
|
|---|
| 4 | import '@fortawesome/fontawesome-svg-core/styles.css';
|
|---|
| 5 | import { config } from '@fortawesome/fontawesome-svg-core';
|
|---|
| 6 | import { I18nextProvider } from 'react-i18next';
|
|---|
| 7 | import i18n from '../i18n';
|
|---|
| 8 |
|
|---|
| 9 | config.autoAddCss = false;
|
|---|
| 10 |
|
|---|
| 11 | const geistSans = Geist({
|
|---|
| 12 | variable: "--font-geist-sans",
|
|---|
| 13 | subsets: ["latin"],
|
|---|
| 14 | });
|
|---|
| 15 |
|
|---|
| 16 | const geistMono = Geist_Mono({
|
|---|
| 17 | variable: "--font-geist-mono",
|
|---|
| 18 | subsets: ["latin"],
|
|---|
| 19 | });
|
|---|
| 20 |
|
|---|
| 21 | export default function RootLayout({
|
|---|
| 22 | children,
|
|---|
| 23 | }: Readonly<{
|
|---|
| 24 | children: React.ReactNode;
|
|---|
| 25 | }>) {
|
|---|
| 26 | return (
|
|---|
| 27 | <html lang="en">
|
|---|
| 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>
|
|---|
| 32 | </body>
|
|---|
| 33 | </html>
|
|---|
| 34 | );
|
|---|
| 35 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.