This commit is contained in:
parent
958140feaa
commit
c8426f4559
|
|
@ -28,6 +28,7 @@ interface WorkspaceLayoutProps {
|
|||
|
||||
export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) {
|
||||
const router = useRouter()
|
||||
const pathname = usePathname() // 获取当前路径
|
||||
|
||||
// 提取当前路径中的 locale 部分
|
||||
const locale = pathname.split("/")[1] || "en"
|
||||
|
|
|
|||
Loading…
Reference in New Issue