From 0c6aaef5d1d0cd60fb27030442912ef1f8cf1458 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 21 Apr 2025 00:04:23 +0800 Subject: [PATCH] . --- components/sidebar/sidebar-switch-item.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/sidebar/sidebar-switch-item.tsx b/components/sidebar/sidebar-switch-item.tsx index d3e2a5e..6f2f672 100644 --- a/components/sidebar/sidebar-switch-item.tsx +++ b/components/sidebar/sidebar-switch-item.tsx @@ -2,6 +2,7 @@ import { ContentType } from "@/types" import { FC } from "react" import { TabsTrigger } from "../ui/tabs" import { WithTooltip } from "../ui/with-tooltip" +import { useTranslation } from 'react-i18next' interface SidebarSwitchItemProps { contentType: ContentType @@ -14,6 +15,7 @@ export const SidebarSwitchItem: FC = ({ icon, onContentTypeChange }) => { + const { t } = useTranslation() return (