From 81c677da0e51f480ee5618e0cc459293dd9ec494 Mon Sep 17 00:00:00 2001 From: Alan Trebugeais Date: Fri, 8 May 2026 14:54:55 +0200 Subject: [PATCH] add: translations for timeline editor --- .../video-editor/timeline/TimelineEditor.tsx | 7 +++++++ .../timeline/components/axis/TimelineAxis.tsx | 4 +++- .../components/toolbar/TimelineToolbar.tsx | 20 ++++++++++++++----- 3 files changed, 25 insertions(+), 6 deletions(-) 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 (
- - - - -