diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsx index dd3d07cf..818caa42 100644 --- a/src/components/video-editor/timeline/TimelineEditor.tsx +++ b/src/components/video-editor/timeline/TimelineEditor.tsx @@ -142,6 +142,8 @@ const TimelineEditor = forwardRef( ref, ) { const t = useScopedT("settings"); + const tTimeline = useScopedT("timeline"); + const tEditor = useScopedT("editor"); const initialEditorPreferences = useMemo(() => loadEditorPreferences(), []); const totalMs = useMemo( () => Math.max(0, Math.round(videoDuration * 1000)), @@ -337,6 +339,11 @@ const TimelineEditor = forwardRef( onAddAudio={handleToolbarAddAudio} onSplitClip={handleSplitClip} cropLabel={t("sections.crop", "Crop")} + addZoomLabel={tTimeline("zoom.addZoom", "Add Zoom (Z)")} + suggestZoomsLabel={tTimeline("zoom.suggestZooms", "Suggest Zooms from Cursor")} + addAnnotationLabel={tTimeline("annotation.addAnnotation", "Add Annotation (A)")} + addAudioLabel={tTimeline("audio.label", "Audio")} + splitClipLabel={tEditor("toolbar.splitClip", "Split Clip (C)")} /> )}
{marker.label} diff --git a/src/components/video-editor/timeline/components/toolbar/TimelineToolbar.tsx b/src/components/video-editor/timeline/components/toolbar/TimelineToolbar.tsx index 1c947e90..fa7093c0 100644 --- a/src/components/video-editor/timeline/components/toolbar/TimelineToolbar.tsx +++ b/src/components/video-editor/timeline/components/toolbar/TimelineToolbar.tsx @@ -41,6 +41,11 @@ interface TimelineToolbarProps { onAddAudio: () => void; onSplitClip: () => void; cropLabel: string; + addZoomLabel: string; + suggestZoomsLabel: string; + addAnnotationLabel: string; + addAudioLabel: string; + splitClipLabel: string; } export default function TimelineToolbar({ @@ -61,23 +66,28 @@ export default function TimelineToolbar({ onAddAudio, onSplitClip, cropLabel, + addZoomLabel, + suggestZoomsLabel, + addAnnotationLabel, + addAudioLabel, + splitClipLabel, }: TimelineToolbarProps) { return (
- - - - -