Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(timeline): show the bound shortcut in the empty-lane hints

Etienne Lescot358c33839452
diff --git a/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx b/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx
index 4dfd671c0..c3f98ca09 100644
--- a/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx
+++ b/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx
@@ -10,8 +10,16 @@ import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";
const VIEWPORT_PX = 900;
const TOTAL_SEC = 1800; // a 30-minute recording, as in the report
+// Every string renders as its bare key, except in the lane-hint tests, which swap in the real
+// English copy to read the key interpolated into it.
+const i18n = vi.hoisted(() => ({
+ translate: null as
+ | null
+ | ((namespace: string, key: string, vars?: Record<string, string | number>) => string),
+}));
vi.mock("@/contexts/I18nContext", () => ({
- useScopedT: () => (key: string) => key,
+ useScopedT: (namespace: string) => (key: string, vars?: Record<string, string | number>) =>
+ i18n.translate ? i18n.translate(namespace, key, vars) : key,
}));
vi.mock("sonner", () => ({ toast: { error: vi.fn(), info: vi.fn(), success: vi.fn() } }));
// The audio lane's pill renders a ClipWaveform; no decode in this geometry suite.
@@ -25,6 +33,8 @@ vi.mock("@/hooks/useAudioPeaks", () => ({ useAudioPeaks: () => null }));
const measureText = vi.fn((text: string) => ({ width: text.length * 6 }));
import { ShortcutsProvider } from "@/contexts/ShortcutsContext";
+import type { I18nNamespace } from "@/i18n/config";
+import { getAvailableLocales, translate } from "@/i18n/loader";
import type { useTimeline } from "@/lib/ai-edition/store/useTimeline";
import { DEFAULT_SHORTCUTS, formatBinding } from "@/lib/shortcuts";
import { V4Timeline } from "./V4Timeline";
@@ -844,6 +854,84 @@ describe("V4Timeline audio lane drag", () => {
});
});
+// #966. An empty lane advertises the shortcut that fills it. The letter used to be written into
+// the string, so after a rebind the hint kept teaching a key that did nothing while the toolbar
+// chip, read off the live binding, showed the right one.
+describe("V4Timeline empty-lane hints", () => {
+ afterEach(() => {
+ i18n.translate = null;
+ (window as unknown as { electronAPI?: unknown }).electronAPI = undefined;
+ });
+
+ function useEnglish() {
+ i18n.translate = (namespace, key, vars) =>
+ translate("en", namespace as I18nNamespace, key, vars);
+ }
+
+ it("names the default keys", () => {
+ useEnglish();
+ renderTimeline(undefined, { id: "ann1", startMs: 10_000, endMs: 11_000 }, [CAMERA_ASSET]);
+ expect(screen.getByText("Press Z to add zoom")).toBeInTheDocument();
+ expect(screen.getByText("Press T to add trim")).toBeInTheDocument();
+ expect(screen.getByText("Press S to add speed")).toBeInTheDocument();
+ expect(screen.getByText("Press C to add a Full Camera segment")).toBeInTheDocument();
+ expect(screen.getByText("Press M to add audio, V to record a voiceover")).toBeInTheDocument();
+ });
+
+ it("names the key the user rebound, formatted like the toolbar chip", async () => {
+ useEnglish();
+ const getShortcuts = vi.fn(async () => ({
+ addZoom: { key: "x" },
+ addTrim: { key: "t", ctrl: true, shift: true },
+ addAnnotation: { key: "n" },
+ addSpeed: { key: "j" },
+ addCameraFullscreen: { key: "k" },
+ addAudio: { key: "u" },
+ addVoiceover: { key: "r", alt: true },
+ }));
+ (window as unknown as { electronAPI?: unknown }).electronAPI = { getShortcuts };
+ renderTimeline(
+ undefined,
+ { id: "ann1", startMs: 10_000, endMs: 11_000 },
+ [CAMERA_ASSET],
+ undefined,
+ {
+ annotationRegions: [],
+ },
+ );
+ expect(await screen.findByText("Press X to add zoom")).toBeInTheDocument();
+ expect(screen.getByText("Press Ctrl + Shift + T to add trim")).toBeInTheDocument();
+ expect(screen.getByText("Press N to add annotation")).toBeInTheDocument();
+ expect(screen.getByText("Press J to add speed")).toBeInTheDocument();
+ expect(screen.getByText("Press K to add a Full Camera segment")).toBeInTheDocument();
+ expect(
+ screen.getByText("Press U to add audio, Alt + R to record a voiceover"),
+ ).toBeInTheDocument();
+ expect(screen.queryByText("Press Z to add zoom")).not.toBeInTheDocument();
+ });
+
+ // The component test reads English only; a locale that renamed or dropped a placeholder
+ // would render the raw `{{key}}`, or the stale letter, with every key set still matching.
+ it.each(getAvailableLocales())("%s interpolates the key into every hint", (locale) => {
+ const vars = { key: "⌘ + X", audioKey: "⌘ + U", voiceoverKey: "⌥ + R" };
+ for (const key of [
+ "hints.pressZoom",
+ "hints.pressTrim",
+ "hints.pressAnnotation",
+ "hints.pressSpeed",
+ "hints.pressCameraFullscreen",
+ ]) {
+ const text = translate(locale, "timeline", key, vars);
+ expect(text, key).toContain("⌘ + X");
+ expect(text, key).not.toContain("{{");
+ }
+ const audio = translate(locale, "timeline", "hints.pressAudio", vars);
+ expect(audio).toContain("⌘ + U");
+ expect(audio).toContain("⌥ + R");
+ expect(audio).not.toContain("{{");
+ });
+});
+
describe("V4Timeline toolbar tooltips", () => {
afterEach(() => {
(window as unknown as { electronAPI?: unknown }).electronAPI = undefined;
diff --git a/src/components/ai-edition/v4/V4Timeline.tsx b/src/components/ai-edition/v4/V4Timeline.tsx
index d10d30d15..587499c2a 100644
--- a/src/components/ai-edition/v4/V4Timeline.tsx
+++ b/src/components/ai-edition/v4/V4Timeline.tsx
@@ -2127,22 +2127,46 @@ export function V4Timeline({
<>
{/* An empty lane advertises the shortcut that fills it ("Press A to add
annotation") rather than restating that it is empty — the same hint
- strings the pre-v4 timeline used, so the keys stay translated. */}
+ strings the pre-v4 timeline used, so the keys stay translated. The key
+ is the live binding, formatted like the toolbar tooltip's chip, so a
+ rebind in the shortcuts dialog moves the hint with it (#966). */}
<div className={styles.tlLane}>
- {renderPills(annPills, t("hints.pressAnnotation"))}
+ {renderPills(
+ annPills,
+ t("hints.pressAnnotation", {
+ key: formatBinding(shortcuts.addAnnotation, isMac),
+ }),
+ )}
+ </div>
+ <div className={styles.tlLane}>
+ {renderPills(
+ speedPills,
+ t("hints.pressSpeed", { key: formatBinding(shortcuts.addSpeed, isMac) }),
+ )}
</div>
<div className={styles.tlLane}>
- {renderPills(speedPills, t("hints.pressSpeed"))}
+ {renderPills(
+ trimPills,
+ t("hints.pressTrim", { key: formatBinding(shortcuts.addTrim, isMac) }),
+ )}
+ </div>
+ <div className={styles.tlLane}>
+ {renderPills(
+ zoomPills,
+ t("hints.pressZoom", { key: formatBinding(shortcuts.addZoom, isMac) }),
+ )}
</div>
- <div className={styles.tlLane}>{renderPills(trimPills, t("hints.pressTrim"))}</div>
- <div className={styles.tlLane}>{renderPills(zoomPills, t("hints.pressZoom"))}</div>
<div className={styles.tlLane}>
{/* Advertising "Press C" on a project with no webcam invites a keystroke
that `addCameraFullscreen` now refuses (#353). The toolbar button is
already disabled; this keeps the lane from contradicting it. */}
{renderPills(
cameraFullscreenPills,
- hasAnyCamera ? t("hints.pressCameraFullscreen") : ts("layout.noWebcam"),
+ hasAnyCamera
+ ? t("hints.pressCameraFullscreen", {
+ key: formatBinding(shortcuts.addCameraFullscreen, isMac),
+ })
+ : ts("layout.noWebcam"),
)}
</div>
{/* Imported audio tracks (issue #350). Always shown, like every other
@@ -2166,7 +2190,10 @@ export function V4Timeline({
className={styles.laneEmpty}
style={{ left: `${nav.start * 100}%`, width: `${navSpan * 100}%` }}
>
- {t("hints.pressAudio")}
+ {t("hints.pressAudio", {
+ audioKey: formatBinding(shortcuts.addAudio, isMac),
+ voiceoverKey: formatBinding(shortcuts.addVoiceover, isMac),
+ })}
</span>
) : (
// One pill per user-visible track: the document stores one
diff --git a/src/i18n/locales/ar/timeline.json b/src/i18n/locales/ar/timeline.json
index 9b2b76bb0..1dbdb6882 100644
--- a/src/i18n/locales/ar/timeline.json
+++ b/src/i18n/locales/ar/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "إضافة كاميرا كاملة الشاشة: تعرض الكاميرا بملء الشاشة عند الوقت الحالي"
},
"hints": {
- "pressZoom": "اضغط Z لإضافة تكبير",
- "pressTrim": "اضغط T لإضافة قص",
- "pressAnnotation": "اضغط A لإضافة شرح",
- "pressAudio": "اضغط M لإضافة صوت، وV لتسجيل تعليق صوتي",
- "pressSpeed": "اضغط S لإضافة سرعة",
- "pressCameraFullscreen": "اضغط C لإضافة مقطع كاميرا كاملة الشاشة"
+ "pressZoom": "اضغط {{key}} لإضافة تكبير",
+ "pressTrim": "اضغط {{key}} لإضافة قص",
+ "pressAnnotation": "اضغط {{key}} لإضافة شرح",
+ "pressAudio": "اضغط {{audioKey}} لإضافة صوت، و{{voiceoverKey}} لتسجيل تعليق صوتي",
+ "pressSpeed": "اضغط {{key}} لإضافة سرعة",
+ "pressCameraFullscreen": "اضغط {{key}} لإضافة مقطع كاميرا كاملة الشاشة"
},
"labels": {
"pan": "تحريك",
diff --git a/src/i18n/locales/cs/timeline.json b/src/i18n/locales/cs/timeline.json
index aa727dd26..6c932b239 100644
--- a/src/i18n/locales/cs/timeline.json
+++ b/src/i18n/locales/cs/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Přidat Celou kameru: zobrazí kameru na celou obrazovku v aktuálním čase"
},
"hints": {
- "pressZoom": "Stiskněte Z pro přidání přiblížení",
- "pressTrim": "Stiskněte T pro přidání oříznutí",
- "pressAnnotation": "Stiskněte A pro přidání anotace",
- "pressAudio": "Stiskněte M pro přidání zvuku, V pro nahrání komentáře",
- "pressSpeed": "Stiskněte S pro přidání rychlosti",
- "pressCameraFullscreen": "Stiskněte C pro přidání segmentu celé kamery"
+ "pressZoom": "Stiskněte {{key}} pro přidání přiblížení",
+ "pressTrim": "Stiskněte {{key}} pro přidání oříznutí",
+ "pressAnnotation": "Stiskněte {{key}} pro přidání anotace",
+ "pressAudio": "Stiskněte {{audioKey}} pro přidání zvuku, {{voiceoverKey}} pro nahrání komentáře",
+ "pressSpeed": "Stiskněte {{key}} pro přidání rychlosti",
+ "pressCameraFullscreen": "Stiskněte {{key}} pro přidání segmentu celé kamery"
},
"labels": {
"pan": "Posun",
diff --git a/src/i18n/locales/de/timeline.json b/src/i18n/locales/de/timeline.json
index 7a636a302..c2785ab43 100644
--- a/src/i18n/locales/de/timeline.json
+++ b/src/i18n/locales/de/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Vollbild-Kamera hinzufügen: zeigt die Kamera im Vollbild zum aktuellen Zeitpunkt"
},
"hints": {
- "pressZoom": "Drücke Z, um einen Zoom hinzuzufügen",
- "pressTrim": "Drücke T, um einen Trim hinzuzufügen",
- "pressAnnotation": "Drücke A, um eine Anmerkung hinzuzufügen",
- "pressAudio": "Drücke M für Audio, V für ein Voiceover",
- "pressSpeed": "Drücke S, um ein Tempo hinzuzufügen",
- "pressCameraFullscreen": "Drücke C, um einen Vollbild-Kamera-Abschnitt hinzuzufügen"
+ "pressZoom": "Drücke {{key}}, um einen Zoom hinzuzufügen",
+ "pressTrim": "Drücke {{key}}, um einen Trim hinzuzufügen",
+ "pressAnnotation": "Drücke {{key}}, um eine Anmerkung hinzuzufügen",
+ "pressAudio": "Drücke {{audioKey}} für Audio, {{voiceoverKey}} für ein Voiceover",
+ "pressSpeed": "Drücke {{key}}, um ein Tempo hinzuzufügen",
+ "pressCameraFullscreen": "Drücke {{key}}, um einen Vollbild-Kamera-Abschnitt hinzuzufügen"
},
"labels": {
"pan": "Verschieben",
diff --git a/src/i18n/locales/en/timeline.json b/src/i18n/locales/en/timeline.json
index 74d95019d..33942d460 100644
--- a/src/i18n/locales/en/timeline.json
+++ b/src/i18n/locales/en/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Add Full Camera: shows the camera full screen at the current time"
},
"hints": {
- "pressZoom": "Press Z to add zoom",
- "pressTrim": "Press T to add trim",
- "pressAnnotation": "Press A to add annotation",
- "pressAudio": "Press M to add audio, V to record a voiceover",
- "pressSpeed": "Press S to add speed",
- "pressCameraFullscreen": "Press C to add a Full Camera segment"
+ "pressZoom": "Press {{key}} to add zoom",
+ "pressTrim": "Press {{key}} to add trim",
+ "pressAnnotation": "Press {{key}} to add annotation",
+ "pressAudio": "Press {{audioKey}} to add audio, {{voiceoverKey}} to record a voiceover",
+ "pressSpeed": "Press {{key}} to add speed",
+ "pressCameraFullscreen": "Press {{key}} to add a Full Camera segment"
},
"labels": {
"pan": "Pan",
diff --git a/src/i18n/locales/es/timeline.json b/src/i18n/locales/es/timeline.json
index bb476dbcd..e8d1e9941 100644
--- a/src/i18n/locales/es/timeline.json
+++ b/src/i18n/locales/es/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Agregar Cámara a pantalla completa: muestra la cámara a pantalla completa en el momento actual"
},
"hints": {
- "pressZoom": "Presiona Z para agregar zoom",
- "pressTrim": "Presiona T para agregar recorte",
- "pressAnnotation": "Presiona A para agregar anotación",
- "pressAudio": "Pulsa M para añadir audio, V para grabar una voz en off",
- "pressSpeed": "Presiona S para agregar velocidad",
- "pressCameraFullscreen": "Presiona C para agregar un segmento de cámara a pantalla completa"
+ "pressZoom": "Presiona {{key}} para agregar zoom",
+ "pressTrim": "Presiona {{key}} para agregar recorte",
+ "pressAnnotation": "Presiona {{key}} para agregar anotación",
+ "pressAudio": "Pulsa {{audioKey}} para añadir audio, {{voiceoverKey}} para grabar una voz en off",
+ "pressSpeed": "Presiona {{key}} para agregar velocidad",
+ "pressCameraFullscreen": "Presiona {{key}} para agregar un segmento de cámara a pantalla completa"
},
"labels": {
"pan": "Desplazar",
diff --git a/src/i18n/locales/fr/timeline.json b/src/i18n/locales/fr/timeline.json
index 63a3346a7..009044900 100644
--- a/src/i18n/locales/fr/timeline.json
+++ b/src/i18n/locales/fr/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Ajouter Caméra plein écran : affiche la caméra en plein écran à l'instant actuel"
},
"hints": {
- "pressZoom": "Appuyez sur Z pour ajouter un zoom",
- "pressTrim": "Appuyez sur T pour ajouter une coupe",
- "pressAnnotation": "Appuyez sur A pour ajouter une annotation",
- "pressAudio": "Appuyez sur M pour ajouter un audio, V pour enregistrer une voix off",
- "pressSpeed": "Appuyez sur S pour ajouter une vitesse",
- "pressCameraFullscreen": "Appuyez sur C pour ajouter un segment Caméra plein écran"
+ "pressZoom": "Appuyez sur {{key}} pour ajouter un zoom",
+ "pressTrim": "Appuyez sur {{key}} pour ajouter une coupe",
+ "pressAnnotation": "Appuyez sur {{key}} pour ajouter une annotation",
+ "pressAudio": "Appuyez sur {{audioKey}} pour ajouter un audio, {{voiceoverKey}} pour enregistrer une voix off",
+ "pressSpeed": "Appuyez sur {{key}} pour ajouter une vitesse",
+ "pressCameraFullscreen": "Appuyez sur {{key}} pour ajouter un segment Caméra plein écran"
},
"labels": {
"pan": "Panoramique",
diff --git a/src/i18n/locales/it/timeline.json b/src/i18n/locales/it/timeline.json
index b753e9a40..ea795c464 100644
--- a/src/i18n/locales/it/timeline.json
+++ b/src/i18n/locales/it/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Aggiungi Camera a schermo intero: mostra la fotocamera a schermo intero nel momento attuale"
},
"hints": {
- "pressZoom": "Premi Z per aggiungere zoom",
- "pressTrim": "Premi T per aggiungere taglio",
- "pressAnnotation": "Premi A per aggiungere annotazione",
- "pressAudio": "Premi M per aggiungere audio, V per registrare una voce fuori campo",
- "pressSpeed": "Premi S per aggiungere velocità",
- "pressCameraFullscreen": "Premi C per aggiungere un segmento Camera a schermo intero"
+ "pressZoom": "Premi {{key}} per aggiungere zoom",
+ "pressTrim": "Premi {{key}} per aggiungere taglio",
+ "pressAnnotation": "Premi {{key}} per aggiungere annotazione",
+ "pressAudio": "Premi {{audioKey}} per aggiungere audio, {{voiceoverKey}} per registrare una voce fuori campo",
+ "pressSpeed": "Premi {{key}} per aggiungere velocità",
+ "pressCameraFullscreen": "Premi {{key}} per aggiungere un segmento Camera a schermo intero"
},
"labels": {
"pan": "Panoramica",
diff --git a/src/i18n/locales/ja-JP/timeline.json b/src/i18n/locales/ja-JP/timeline.json
index 8a643b60a..81a87ffb6 100644
--- a/src/i18n/locales/ja-JP/timeline.json
+++ b/src/i18n/locales/ja-JP/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "フルスクリーンカメラを追加:現在の再生位置でカメラを全画面表示します"
},
"hints": {
- "pressZoom": "Zキーを押してズームを追加",
- "pressTrim": "Tキーを押してトリムを追加",
- "pressAnnotation": "Aキーを押して注釈を追加",
- "pressAudio": "M キーで音声を追加、V キーでナレーションを録音",
- "pressSpeed": "Sキーを押して再生速度を追加",
- "pressCameraFullscreen": "Cキーを押してフルスクリーンカメラのセグメントを追加"
+ "pressZoom": "{{key}}キーを押してズームを追加",
+ "pressTrim": "{{key}}キーを押してトリムを追加",
+ "pressAnnotation": "{{key}}キーを押して注釈を追加",
+ "pressAudio": "{{audioKey}} キーで音声を追加、{{voiceoverKey}} キーでナレーションを録音",
+ "pressSpeed": "{{key}}キーを押して再生速度を追加",
+ "pressCameraFullscreen": "{{key}}キーを押してフルスクリーンカメラのセグメントを追加"
},
"labels": {
"pan": "移動",
diff --git a/src/i18n/locales/ko-KR/timeline.json b/src/i18n/locales/ko-KR/timeline.json
index 8d838cbdd..b97397ceb 100644
--- a/src/i18n/locales/ko-KR/timeline.json
+++ b/src/i18n/locales/ko-KR/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "전체 화면 카메라 추가: 현재 시점에 카메라를 전체 화면으로 표시합니다"
},
"hints": {
- "pressZoom": "Z를 눌러 줌 추가",
- "pressTrim": "T를 눌러 트림 추가",
- "pressAnnotation": "A를 눌러 주석 추가",
- "pressAudio": "M 키로 오디오 추가, V 키로 보이스오버 녹음",
- "pressSpeed": "S를 눌러 속도 추가",
- "pressCameraFullscreen": "C를 눌러 전체 화면 카메라 구간을 추가하세요"
+ "pressZoom": "{{key}}를 눌러 줌 추가",
+ "pressTrim": "{{key}}를 눌러 트림 추가",
+ "pressAnnotation": "{{key}}를 눌러 주석 추가",
+ "pressAudio": "{{audioKey}} 키로 오디오 추가, {{voiceoverKey}} 키로 보이스오버 녹음",
+ "pressSpeed": "{{key}}를 눌러 속도 추가",
+ "pressCameraFullscreen": "{{key}}를 눌러 전체 화면 카메라 구간을 추가하세요"
},
"labels": {
"pan": "이동",
diff --git a/src/i18n/locales/pt-BR/timeline.json b/src/i18n/locales/pt-BR/timeline.json
index 2ff8be1b0..5bfc4aca2 100644
--- a/src/i18n/locales/pt-BR/timeline.json
+++ b/src/i18n/locales/pt-BR/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Adicionar Câmera em Tela Cheia: mostra a câmera em tela cheia no momento atual"
},
"hints": {
- "pressZoom": "Pressione Z para adicionar zoom",
- "pressTrim": "Pressione T para adicionar recorte",
- "pressAnnotation": "Pressione A para adicionar anotação",
- "pressAudio": "Pressione M para adicionar áudio, V para gravar uma narração",
- "pressSpeed": "Pressione S para adicionar velocidade",
- "pressCameraFullscreen": "Pressione C para adicionar um segmento de Câmera em Tela Cheia"
+ "pressZoom": "Pressione {{key}} para adicionar zoom",
+ "pressTrim": "Pressione {{key}} para adicionar recorte",
+ "pressAnnotation": "Pressione {{key}} para adicionar anotação",
+ "pressAudio": "Pressione {{audioKey}} para adicionar áudio, {{voiceoverKey}} para gravar uma narração",
+ "pressSpeed": "Pressione {{key}} para adicionar velocidade",
+ "pressCameraFullscreen": "Pressione {{key}} para adicionar um segmento de Câmera em Tela Cheia"
},
"labels": {
"pan": "Mover",
diff --git a/src/i18n/locales/ru/timeline.json b/src/i18n/locales/ru/timeline.json
index 73ca1d173..fb019b9ad 100644
--- a/src/i18n/locales/ru/timeline.json
+++ b/src/i18n/locales/ru/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Добавить камеру на весь экран: показывает камеру на весь экран в текущий момент"
},
"hints": {
- "pressZoom": "Нажмите Z для добавления масштабирования",
- "pressTrim": "Нажмите T для добавления обрезки",
- "pressAnnotation": "Нажмите A для добавления аннотации",
- "pressAudio": "Нажмите M, чтобы добавить аудио, V — чтобы записать закадровый голос",
- "pressSpeed": "Нажмите S для изменения скорости",
- "pressCameraFullscreen": "Нажмите C, чтобы добавить сегмент камеры на весь экран"
+ "pressZoom": "Нажмите {{key}} для добавления масштабирования",
+ "pressTrim": "Нажмите {{key}} для добавления обрезки",
+ "pressAnnotation": "Нажмите {{key}} для добавления аннотации",
+ "pressAudio": "Нажмите {{audioKey}}, чтобы добавить аудио, {{voiceoverKey}} — чтобы записать закадровый голос",
+ "pressSpeed": "Нажмите {{key}} для изменения скорости",
+ "pressCameraFullscreen": "Нажмите {{key}}, чтобы добавить сегмент камеры на весь экран"
},
"labels": {
"pan": "Панорамирование",
diff --git a/src/i18n/locales/tr/timeline.json b/src/i18n/locales/tr/timeline.json
index ceb5b790f..c24dd7d61 100644
--- a/src/i18n/locales/tr/timeline.json
+++ b/src/i18n/locales/tr/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Tam Ekran Kamera ekle: kamerayı şu anki zamanda tam ekran gösterir"
},
"hints": {
- "pressZoom": "Yakınlaştırma eklemek için Z tuşuna basın",
- "pressTrim": "Kırpma eklemek için T tuşuna basın",
- "pressAnnotation": "Açıklama eklemek için A tuşuna basın",
- "pressAudio": "Ses eklemek için M, seslendirme kaydetmek için V tuşuna basın",
- "pressSpeed": "Hız eklemek için S tuşuna basın",
- "pressCameraFullscreen": "Tam Ekran Kamera bölümü eklemek için C tuşuna basın"
+ "pressZoom": "Yakınlaştırma eklemek için {{key}} tuşuna basın",
+ "pressTrim": "Kırpma eklemek için {{key}} tuşuna basın",
+ "pressAnnotation": "Açıklama eklemek için {{key}} tuşuna basın",
+ "pressAudio": "Ses eklemek için {{audioKey}}, seslendirme kaydetmek için {{voiceoverKey}} tuşuna basın",
+ "pressSpeed": "Hız eklemek için {{key}} tuşuna basın",
+ "pressCameraFullscreen": "Tam Ekran Kamera bölümü eklemek için {{key}} tuşuna basın"
},
"labels": {
"pan": "Kaydır",
diff --git a/src/i18n/locales/vi/timeline.json b/src/i18n/locales/vi/timeline.json
index 3dcc7405a..3bdc702c6 100644
--- a/src/i18n/locales/vi/timeline.json
+++ b/src/i18n/locales/vi/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "Thêm Camera Toàn màn hình: hiển thị camera toàn màn hình tại thời điểm hiện tại"
},
"hints": {
- "pressZoom": "Nhấn Z để thêm thu phóng",
- "pressTrim": "Nhấn T để thêm cắt",
- "pressAnnotation": "Nhấn A để thêm chú thích",
- "pressAudio": "Nhấn M để thêm âm thanh, V để ghi âm lời thuyết minh",
- "pressSpeed": "Nhấn S để thêm tốc độ",
- "pressCameraFullscreen": "Nhấn C để thêm một đoạn Camera Toàn màn hình"
+ "pressZoom": "Nhấn {{key}} để thêm thu phóng",
+ "pressTrim": "Nhấn {{key}} để thêm cắt",
+ "pressAnnotation": "Nhấn {{key}} để thêm chú thích",
+ "pressAudio": "Nhấn {{audioKey}} để thêm âm thanh, {{voiceoverKey}} để ghi âm lời thuyết minh",
+ "pressSpeed": "Nhấn {{key}} để thêm tốc độ",
+ "pressCameraFullscreen": "Nhấn {{key}} để thêm một đoạn Camera Toàn màn hình"
},
"labels": {
"pan": "Xoay",
diff --git a/src/i18n/locales/zh-CN/timeline.json b/src/i18n/locales/zh-CN/timeline.json
index 18a2cabbb..4d14f67ee 100644
--- a/src/i18n/locales/zh-CN/timeline.json
+++ b/src/i18n/locales/zh-CN/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "添加全屏摄像头:在当前时间全屏显示摄像头"
},
"hints": {
- "pressZoom": "按 Z 添加缩放",
- "pressTrim": "按 T 添加剪辑",
- "pressAnnotation": "按 A 添加标注",
- "pressAudio": "按 M 添加音频,按 V 录制配音",
- "pressSpeed": "按 S 添加速度",
- "pressCameraFullscreen": "按 C 添加一个全屏摄像头片段"
+ "pressZoom": "按 {{key}} 添加缩放",
+ "pressTrim": "按 {{key}} 添加剪辑",
+ "pressAnnotation": "按 {{key}} 添加标注",
+ "pressAudio": "按 {{audioKey}} 添加音频,按 {{voiceoverKey}} 录制配音",
+ "pressSpeed": "按 {{key}} 添加速度",
+ "pressCameraFullscreen": "按 {{key}} 添加一个全屏摄像头片段"
},
"labels": {
"pan": "平移",
diff --git a/src/i18n/locales/zh-TW/timeline.json b/src/i18n/locales/zh-TW/timeline.json
index 17d76dcc6..948a87cc5 100644
--- a/src/i18n/locales/zh-TW/timeline.json
+++ b/src/i18n/locales/zh-TW/timeline.json
@@ -10,12 +10,12 @@
"addCameraFullscreen": "新增全螢幕攝影機:在目前時間全螢幕顯示攝影機"
},
"hints": {
- "pressZoom": "按 Z 新增縮放",
- "pressTrim": "按 T 新增剪輯",
- "pressAnnotation": "按 A 新增標註",
- "pressAudio": "按 M 新增音訊,按 V 錄製配音",
- "pressSpeed": "按 S 新增速度",
- "pressCameraFullscreen": "按 C 新增一個全螢幕攝影機片段"
+ "pressZoom": "按 {{key}} 新增縮放",
+ "pressTrim": "按 {{key}} 新增剪輯",
+ "pressAnnotation": "按 {{key}} 新增標註",
+ "pressAudio": "按 {{audioKey}} 新增音訊,按 {{voiceoverKey}} 錄製配音",
+ "pressSpeed": "按 {{key}} 新增速度",
+ "pressCameraFullscreen": "按 {{key}} 新增一個全螢幕攝影機片段"
},
"labels": {
"pan": "平移",