feat: docs
This commit is contained in:
+35
-2
@@ -1,5 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Fredoka, Geist, Geist_Mono, Press_Start_2P, VT323 } from "next/font/google";
|
||||
import { RootProvider } from "fumadocs-ui/provider/next";
|
||||
import "./globals.css";
|
||||
|
||||
const geistSans = Geist({
|
||||
@@ -29,6 +30,30 @@ const vt323 = VT323({
|
||||
weight: "400",
|
||||
});
|
||||
|
||||
const frenchTranslations = {
|
||||
"Back to Home(404 page)": "Retour à l'accueil",
|
||||
"Close Search(search dialog)(aria-label)": "Fermer la recherche",
|
||||
"Close Sidebar(sidebar)(aria-label)": "Fermer la navigation",
|
||||
"Collapse Sidebar(sidebar)(aria-label)": "Réduire la navigation",
|
||||
"Copied Text(code block)(aria-label)": "Texte copié",
|
||||
"Copy Anchor Link(heading anchor)(aria-label)": "Copier le lien",
|
||||
"Copy Text(code block)(aria-label)": "Copier le texte",
|
||||
"Next Page(pagination)": "Page suivante",
|
||||
"No Headings(table of contents)": "Aucun titre",
|
||||
"No results found(search dialog)": "Aucun résultat trouvé",
|
||||
"On this page(table of contents)": "Sur cette page",
|
||||
"Open Search(search trigger)(aria-label)": "Ouvrir la recherche",
|
||||
"Open Sidebar(sidebar)(aria-label)": "Ouvrir la navigation",
|
||||
"Page Not Found(404 page)": "Page introuvable",
|
||||
"Previous Page(pagination)": "Page précédente",
|
||||
"Search(search dialog)": "Rechercher dans la documentation",
|
||||
"Search(search trigger)": "Rechercher",
|
||||
"Table of Contents(inline table of contents)": "Sommaire",
|
||||
"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.(404 page)":
|
||||
"La page demandée n'existe pas ou a été déplacée.",
|
||||
"Toggle Menu(mobile menu)(aria-label)": "Ouvrir le menu",
|
||||
};
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Le serveur de Leon",
|
||||
description: "Streaming, Minecraft et services privés de Leon.",
|
||||
@@ -56,9 +81,17 @@ export default function RootLayout({
|
||||
<html
|
||||
lang="fr"
|
||||
data-scroll-behavior="smooth"
|
||||
className={`${geistSans.variable} ${geistMono.variable} ${fredoka.variable} ${pressStart.variable} ${vt323.variable} h-full antialiased`}
|
||||
suppressHydrationWarning
|
||||
className={`dark ${geistSans.variable} ${geistMono.variable} ${fredoka.variable} ${pressStart.variable} ${vt323.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">{children}</body>
|
||||
<body className="min-h-full flex flex-col">
|
||||
<RootProvider
|
||||
theme={{ enabled: false }}
|
||||
i18n={{ locale: "fr", translations: frenchTranslations }}
|
||||
>
|
||||
{children}
|
||||
</RootProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user