mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-26 08:51:53 +08:00
style: lint and fmt code
This commit is contained in:
+15
-4
@@ -1,7 +1,17 @@
|
||||
import type { LinkItemType } from "fumadocs-ui/layouts/shared";
|
||||
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import { LanguageSwitcher } from "@/components/language-switcher";
|
||||
|
||||
type NavLabelKey = "MemShellGenerator" | "ProbeShellGenerator" | "documents" | "about";
|
||||
|
||||
function NavLabel({ translationKey }: { translationKey: NavLabelKey }) {
|
||||
const { t } = useTranslation("common");
|
||||
|
||||
return t(translationKey);
|
||||
}
|
||||
|
||||
export const siteConfig = {
|
||||
name: "MemShellParty",
|
||||
url: "https://party.memshell.news",
|
||||
@@ -13,19 +23,20 @@ export const siteConfig = {
|
||||
blog: "https://reajason.eu.org",
|
||||
navLinks: [
|
||||
{
|
||||
text: "MemShellGenerator",
|
||||
text: <NavLabel translationKey="MemShellGenerator" />,
|
||||
url: "/memshell",
|
||||
},
|
||||
{
|
||||
text: "ProbeShellGenerator",
|
||||
text: <NavLabel translationKey="ProbeShellGenerator" />,
|
||||
url: "/probeshell",
|
||||
},
|
||||
{
|
||||
text: "Documents",
|
||||
text: <NavLabel translationKey="documents" />,
|
||||
url: "/docs",
|
||||
external: true,
|
||||
},
|
||||
{
|
||||
text: "About",
|
||||
text: <NavLabel translationKey="about" />,
|
||||
url: "/about",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user