Skip to content

Commit 1def56b

Browse files
committed
fix(build): remove unused i18n vars blocking TypeScript compile
1 parent 53133c5 commit 1def56b

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/components/video-editor/VideoEditor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
44
import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
55
import { toast } from "sonner";
66
import { Toaster } from "@/components/ui/sonner";
7-
import { useI18n, useScopedT } from "@/contexts/I18nContext";
7+
import { useI18n } from "@/contexts/I18nContext";
88
import { SUPPORTED_LOCALES } from "@/i18n/config";
99
import type { AppLocale } from "@/i18n/config";
1010
import { useShortcuts } from "@/contexts/ShortcutsContext";
@@ -111,7 +111,6 @@ function LanguageSwitcher() {
111111

112112
export default function VideoEditor() {
113113
const { t } = useI18n();
114-
const tEditor = useScopedT("editor");
115114
const [videoPath, setVideoPath] = useState<string | null>(null);
116115
const [videoSourcePath, setVideoSourcePath] = useState<string | null>(null);
117116
const [currentProjectPath, setCurrentProjectPath] = useState<string | null>(null);

src/components/video-editor/timeline/TimelineEditor.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
DropdownMenuItem,
2121
DropdownMenuTrigger,
2222
} from "@/components/ui/dropdown-menu";
23-
import { useScopedT } from "@/contexts/I18nContext";
2423
import { useShortcuts } from "@/contexts/ShortcutsContext";
2524
import { matchesShortcut } from "@/lib/shortcuts";
2625
import { cn } from "@/lib/utils";
@@ -646,7 +645,6 @@ export default function TimelineEditor({
646645
aspectRatio,
647646
onAspectRatioChange,
648647
}: TimelineEditorProps) {
649-
const t = useScopedT("timeline");
650648
const totalMs = useMemo(() => Math.max(0, Math.round(videoDuration * 1000)), [videoDuration]);
651649
const currentTimeMs = useMemo(() => Math.round(currentTime * 1000), [currentTime]);
652650
const timelineScale = useMemo(() => calculateTimelineScale(videoDuration), [videoDuration]);

0 commit comments

Comments
 (0)