Changeset 50f2fb4 for src/app/layout.tsx


Ignore:
Timestamp:
01/30/26 01:40:27 (8 months ago)
Author:
Stefan-Saveski <stefansaveski19@…>
Branches:
master
Children:
ba52069
Parents:
298f9b3
Message:

Added dual language feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/app/layout.tsx

    r298f9b3 r50f2fb4  
    1 import type { Metadata } from "next";
     1"use client";
    22import { Geist, Geist_Mono } from "next/font/google";
    33import "./globals.css";
    44import '@fortawesome/fontawesome-svg-core/styles.css';
    55import { config } from '@fortawesome/fontawesome-svg-core';
     6import { I18nextProvider } from 'react-i18next';
     7import i18n from '../i18n';
    68
    7 // Prevent FontAwesome from adding CSS automatically
    89config.autoAddCss = false;
    910
     
    1819});
    1920
    20 export const metadata: Metadata = {
    21   title: "IKnow - Student Portal",
    22   description: "Student portal for Ss. Cyril and Methodius University",
    23 };
    24 
    2521export default function RootLayout({
    2622  children,
     
    3026  return (
    3127    <html lang="en">
    32       <body
    33         className={`${geistSans.variable} ${geistMono.variable} antialiased`}
    34       >
    35         <div className="mx-auto max-w-6xl px-4">{children}</div>
     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>
    3632      </body>
    3733    </html>
Note: See TracChangeset for help on using the changeset viewer.