diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx index 52b1a291..f410b42b 100644 --- a/src/components/video-editor/VideoEditor.tsx +++ b/src/components/video-editor/VideoEditor.tsx @@ -4,7 +4,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels"; import { toast } from "sonner"; import { Toaster } from "@/components/ui/sonner"; -import { useI18n, useScopedT } from "@/contexts/I18nContext"; +import { useI18n } from "@/contexts/I18nContext"; import { SUPPORTED_LOCALES } from "@/i18n/config"; import type { AppLocale } from "@/i18n/config"; import { useShortcuts } from "@/contexts/ShortcutsContext"; @@ -111,7 +111,6 @@ function LanguageSwitcher() { export default function VideoEditor() { const { t } = useI18n(); - const tEditor = useScopedT("editor"); const [videoPath, setVideoPath] = useState(null); const [videoSourcePath, setVideoSourcePath] = useState(null); const [currentProjectPath, setCurrentProjectPath] = useState(null); diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsx index db1b8dab..13ce0719 100644 --- a/src/components/video-editor/timeline/TimelineEditor.tsx +++ b/src/components/video-editor/timeline/TimelineEditor.tsx @@ -20,7 +20,6 @@ import { DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; -import { useScopedT } from "@/contexts/I18nContext"; import { useShortcuts } from "@/contexts/ShortcutsContext"; import { matchesShortcut } from "@/lib/shortcuts"; import { cn } from "@/lib/utils"; @@ -646,7 +645,6 @@ export default function TimelineEditor({ aspectRatio, onAspectRatioChange, }: TimelineEditorProps) { - const t = useScopedT("timeline"); const totalMs = useMemo(() => Math.max(0, Math.round(videoDuration * 1000)), [videoDuration]); const currentTimeMs = useMemo(() => Math.round(currentTime * 1000), [currentTime]); const timelineScale = useMemo(() => calculateTimelineScale(videoDuration), [videoDuration]);