From 413493200a37621889f2f3d11f07e6d236359135 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 21 Apr 2025 10:31:25 +0800 Subject: [PATCH] . --- app/[locale]/[workspaceid]/layout.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/[locale]/[workspaceid]/layout.tsx b/app/[locale]/[workspaceid]/layout.tsx index 8398a01..218cba6 100644 --- a/app/[locale]/[workspaceid]/layout.tsx +++ b/app/[locale]/[workspaceid]/layout.tsx @@ -21,12 +21,15 @@ import { LLMID } from "@/types" import { useParams, useRouter, useSearchParams } from "next/navigation" import { ReactNode, useContext, useEffect, useState } from "react" import Loading from "../loading" +import { useTranslation } from 'react-i18next' interface WorkspaceLayoutProps { children: ReactNode } export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) { + const { t } = useTranslation() + const router = useRouter() const pathname = usePathname() // 获取当前路径