The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
fix(studio): localize remaining conditional interface labels
罗高6392a1ce20c2
diff --git a/studio/src/components/editor/EaseParamFields.tsx b/studio/src/components/editor/EaseParamFields.tsxindex e2fa0b87..2d6a1641 100644--- a/studio/src/components/editor/EaseParamFields.tsx+++ b/studio/src/components/editor/EaseParamFields.tsx@@ -107,7 +107,7 @@ export function EaseBezierField({aria-live="polite"className={`mt-1 text-[9px] text-danger-ink ${error ? "" : "sr-only"}`}>- {error ?? "Valid bezier values"}+ {error ? t(error) : t("Valid bezier values")}</p></div>);diff --git a/studio/src/components/editor/LayersPanel.tsx b/studio/src/components/editor/LayersPanel.tsxindex 960b4d79..4ea91704 100644--- a/studio/src/components/editor/LayersPanel.tsx+++ b/studio/src/components/editor/LayersPanel.tsx@@ -448,7 +448,7 @@ export const LayersPanel = memo(function LayersPanel({ host }: { host?: LayersPa><span aria-hidden="true">←</span><span className="truncate">- {activeGroupElement.getAttribute("data-hf-group") || "Group"}+ {activeGroupElement.getAttribute("data-hf-group") || t("Group")}</span></button>)}diff --git a/studio/src/components/editor/propertyPanelFlatColorGradingSection.tsx b/studio/src/components/editor/propertyPanelFlatColorGradingSection.tsxindex 174355d3..99856b66 100644--- a/studio/src/components/editor/propertyPanelFlatColorGradingSection.tsx+++ b/studio/src/components/editor/propertyPanelFlatColorGradingSection.tsx@@ -390,7 +390,7 @@ export function FlatColorGradingSection({<div className="space-y-1.5 pb-1"><div className="flex items-center justify-between gap-2"><span className="min-w-0 flex-1 truncate font-mono text-[10px] text-panel-text-3">- {selectedLutName ?? "None"}+ {selectedLutName ?? t("None")}</span><selectdata-flat-grade-lut-select="true"diff --git a/studio/src/components/editor/propertyPanelFlatMediaSection.tsx b/studio/src/components/editor/propertyPanelFlatMediaSection.tsxindex 8bbdcb05..05f5758f 100644--- a/studio/src/components/editor/propertyPanelFlatMediaSection.tsx+++ b/studio/src/components/editor/propertyPanelFlatMediaSection.tsx@@ -226,7 +226,7 @@ export function FlatMediaSection({<div className="mt-1 space-y-1"><div className="flex items-center justify-between text-[10px] text-panel-text-4"><span className="min-w-0 flex-1 truncate">- {removeProgress.error ?? removeProgress.stage ?? "Processing"}+ {t(removeProgress.error ?? removeProgress.stage ?? "Processing")}</span><span>{Math.round(removeProgress.progress)}%</span></div>diff --git a/studio/src/components/editor/propertyPanelFlatTextSection.tsx b/studio/src/components/editor/propertyPanelFlatTextSection.tsxindex 4c52e487..214f082f 100644--- a/studio/src/components/editor/propertyPanelFlatTextSection.tsx+++ b/studio/src/components/editor/propertyPanelFlatTextSection.tsx@@ -395,7 +395,7 @@ export function FlatTextLayerList({style={{ backgroundColor: getTextFieldColor(field, styles) }}/><span className="min-w-0 flex-1 truncate text-[11px] text-panel-text-1">- {formatTextFieldPreview(field.value) || `Text ${index + 1}`}+ {formatTextFieldPreview(field.value) || t("Text {index}", { index: index + 1 })}</span><span className="shrink-0 font-mono text-[9px] text-panel-text-4">{field.tagName}diff --git a/studio/src/components/editor/propertyPanelMediaSection.tsx b/studio/src/components/editor/propertyPanelMediaSection.tsxindex 4f5327f4..564b0e46 100644--- a/studio/src/components/editor/propertyPanelMediaSection.tsx+++ b/studio/src/components/editor/propertyPanelMediaSection.tsx@@ -229,7 +229,7 @@ export function MediaSection({<div className="space-y-1"><div className="flex min-w-0 items-center justify-between gap-2 text-[10px] text-panel-text-4"><span className="min-w-0 flex-1 truncate">- {removeProgress.error ?? removeProgress.stage ?? "Processing"}+ {t(removeProgress.error ?? removeProgress.stage ?? "Processing")}</span><span>{Math.round(removeProgress.progress)}%</span></div>diff --git a/studio/src/components/editor/propertyPanelSections.tsx b/studio/src/components/editor/propertyPanelSections.tsxindex 04b56e87..d9e9c838 100644--- a/studio/src/components/editor/propertyPanelSections.tsx+++ b/studio/src/components/editor/propertyPanelSections.tsx@@ -317,7 +317,7 @@ function TextFieldEditor({<div className={showRemove ? "flex min-w-0 items-center justify-between gap-2" : "min-w-0"}><div className="min-w-0"><div className="truncate text-[11px] font-medium text-neutral-100">- {formatTextFieldPreview(field.value) || "Text"}+ {formatTextFieldPreview(field.value) || t("Text")}</div><div className="text-[10px] text-neutral-500">{field.tagName}</div></div>@@ -506,7 +506,7 @@ export function TextSection({style={{ backgroundColor: getTextFieldColor(field, styles) }}/><span className="min-w-0 truncate text-[11px] font-medium text-neutral-100">- {formatTextFieldPreview(field.value) || `Text ${index + 1}`}+ {formatTextFieldPreview(field.value) || t("Text {index}", { index: index + 1 })}</span></div><span className="shrink-0 rounded-md border border-neutral-700 bg-neutral-950 px-1.5 py-0.5 text-[10px] text-neutral-500">diff --git a/studio/src/components/panels/SlideshowSubPanels.tsx b/studio/src/components/panels/SlideshowSubPanels.tsxindex 345c02bf..7f15f38c 100644--- a/studio/src/components/panels/SlideshowSubPanels.tsx+++ b/studio/src/components/panels/SlideshowSubPanels.tsx@@ -482,7 +482,7 @@ export function HotspotTool({<div className="flex flex-col gap-1.5"><p className="text-[11px] text-neutral-400">{t("Selected element:")}{" "}- <span className="text-neutral-200 font-mono">{elementKey ?? "none"}</span>+ <span className="text-neutral-200 font-mono">{elementKey ?? t("None")}</span></p>{!elementKey && (<p className="text-[10px] text-neutral-500 italic">diff --git a/studio/src/components/renders/FfmpegRequiredNotice.tsx b/studio/src/components/renders/FfmpegRequiredNotice.tsxindex 3f35f657..ce52e67c 100644--- a/studio/src/components/renders/FfmpegRequiredNotice.tsx+++ b/studio/src/components/renders/FfmpegRequiredNotice.tsx@@ -70,14 +70,14 @@ export const FfmpegRequiredNotice = memo(function FfmpegRequiredNotice({><div className="flex flex-col gap-0.5"><span className="text-[11px] font-semibold text-warning-ink">- {status.title ?? "FFmpeg not found"}+ {t(status.title ?? "FFmpeg not found")}</span>{/* text-2, not the panel's usual text-4 for secondary copy: the amberwash lifts the background, and text-4 measures 2.2:1 on it againstthe 4.5:1 minimum. This is the line that explains why Export isoff, so it has to be readable. text-2 measures 6.6:1. */}<span className="text-[10px] leading-snug text-pretty text-panel-text-2">- {status.detail ?? "FFmpeg is required to encode video."}+ {t(status.detail ?? "FFmpeg is required to encode video.")}</span></div>diff --git a/studio/src/components/ui/VideoFrameThumbnail.tsx b/studio/src/components/ui/VideoFrameThumbnail.tsxindex 907baeb6..b6c51cf9 100644--- a/studio/src/components/ui/VideoFrameThumbnail.tsx+++ b/studio/src/components/ui/VideoFrameThumbnail.tsx@@ -1,3 +1,4 @@+import { useI18n } from "../../i18n/I18n";import { useState, useEffect } from "react";/**@@ -13,6 +14,7 @@ export function VideoFrameThumbnail({/** Shown instead of an endless shimmer when the video can't be decoded. */fallbackLabel?: string;}) {+ const { t } = useI18n();const [frame, setFrame] = useState<string | null>(null);const [failed, setFailed] = useState(false);@@ -63,7 +65,7 @@ export function VideoFrameThumbnail({if (failed && !frame) {return (<div className="w-full h-full bg-neutral-800 flex items-center justify-center">- <span className="text-[9px] font-medium text-neutral-600">{fallbackLabel ?? "VIDEO"}</span>+ <span className="text-[9px] font-medium text-neutral-600">{fallbackLabel ?? t("Video")}</span></div>);}diff --git a/studio/src/i18n/de.json b/studio/src/i18n/de.jsonindex e385cd27..125b2566 100644--- a/studio/src/i18n/de.json+++ b/studio/src/i18n/de.json@@ -524,7 +524,7 @@"Rewrite the helper/loop into explicit tweens so this keyframe edits directly": "Schreiben Sie den Helfer/die Schleife in explizite Tweens um, damit dieser Keyframe direkt bearbeitet wird","Ripple off: deleting a main-track clip leaves a gap": "Ripple off: Das Löschen eines Haupttrack-Clips hinterlässt eine Lücke","Ripple on: keeps the main track gapless": "Ripple-Bearbeitung ist aktiviert: Halten Sie den Haupttitel lückenlos",- "Root": "Main composition",+ "Root": "Hauptkomposition","Root composition: opens automatically on load": "Hauptzusammensetzung: Wird beim Laden automatisch geöffnet","Rotate": "Rotation","Rotate element to follow path tangent": "Element entlang der Pfadtangente drehen",@@ -1206,7 +1206,7 @@"Close project list": "Projektliste schließen","Collapse project list": "Collapse project list","Expand project list": "Projektliste erweitern",- "Connect Agent": "Connect-Agent",+ "Connect Agent": "Agent verbinden","Search projects…": "Suchelemente…","Search projects": "Suchelemente","Loading projects…": "Artikel werden gelesen...",@@ -1743,5 +1743,11 @@"{count} elements selected": {"one": "{count} Element ausgewählt","other": "{count} Elemente ausgewählt"- }+ },+ "Valid bezier values": "Gültige Bézier-Werte",+ "Processing": "Wird verarbeitet",+ "Text {index}": "Text {index}",+ "FFmpeg not found": "FFmpeg nicht gefunden",+ "FFmpeg is required to encode video.": "Zum Kodieren von Videos wird FFmpeg benötigt.",+ "Drop media here": "Medien hier ablegen"}diff --git a/studio/src/i18n/es.json b/studio/src/i18n/es.jsonindex 59f719f7..009dd107 100644--- a/studio/src/i18n/es.json+++ b/studio/src/i18n/es.json@@ -1206,7 +1206,7 @@"Close project list": "Cerrar lista de proyectos","Collapse project list": "Contraer lista de proyectos","Expand project list": "Ampliar lista de proyectos",- "Connect Agent": "Conectar agente",+ "Connect Agent": "Conectar Agent","Search projects…": "Buscar elementos…","Search projects": "Buscar elementos","Loading projects…": "Leyendo elementos...",@@ -1743,5 +1743,11 @@"{count} elements selected": {"one": "{count} elemento seleccionado","other": "{count} elementos seleccionados"- }+ },+ "Valid bezier values": "Valores Bézier válidos",+ "Processing": "Procesando",+ "Text {index}": "Texto {index}",+ "FFmpeg not found": "No se encontró FFmpeg",+ "FFmpeg is required to encode video.": "Se necesita FFmpeg para codificar vídeo.",+ "Drop media here": "Suelta los archivos multimedia aquí"}diff --git a/studio/src/i18n/fr.json b/studio/src/i18n/fr.jsonindex 4c86ed59..0d468360 100644--- a/studio/src/i18n/fr.json+++ b/studio/src/i18n/fr.json@@ -1206,7 +1206,7 @@"Close project list": "Fermer la liste des projets","Collapse project list": "Réduire la liste des projets","Expand project list": "Développer la liste des projets",- "Connect Agent": "Agent de connexion",+ "Connect Agent": "Connecter un Agent","Search projects…": "Rechercher des éléments…","Search projects": "Rechercher des éléments","Loading projects…": "Lecture d'éléments...",@@ -1743,5 +1743,11 @@"{count} elements selected": {"one": "{count} élément sélectionné","other": "{count} éléments sélectionnés"- }+ },+ "Valid bezier values": "Valeurs de Bézier valides",+ "Processing": "Traitement en cours",+ "Text {index}": "Texte {index}",+ "FFmpeg not found": "FFmpeg introuvable",+ "FFmpeg is required to encode video.": "FFmpeg est nécessaire pour encoder les vidéos.",+ "Drop media here": "Déposez les médias ici"}diff --git a/studio/src/i18n/it.json b/studio/src/i18n/it.jsonindex 9c0553e9..49e44a6a 100644--- a/studio/src/i18n/it.json+++ b/studio/src/i18n/it.json@@ -1206,7 +1206,7 @@"Close project list": "Chiude l'elenco dei progetti","Collapse project list": "Comprimi l'elenco dei progetti","Expand project list": "Espandi l'elenco dei progetti",- "Connect Agent": "Connetti agente",+ "Connect Agent": "Collega Agent","Search projects…": "Cerca elementi...","Search projects": "Cerca elementi","Loading projects…": "Elementi di lettura...",@@ -1743,5 +1743,11 @@"{count} elements selected": {"one": "{count} elemento selezionato","other": "{count} elementi selezionati"- }+ },+ "Valid bezier values": "Valori Bézier validi",+ "Processing": "Elaborazione in corso",+ "Text {index}": "Testo {index}",+ "FFmpeg not found": "FFmpeg non trovato",+ "FFmpeg is required to encode video.": "FFmpeg è necessario per codificare i video.",+ "Drop media here": "Trascina qui i file multimediali"}diff --git a/studio/src/i18n/ja.json b/studio/src/i18n/ja.jsonindex 6784a8fd..458a5ebe 100644--- a/studio/src/i18n/ja.json+++ b/studio/src/i18n/ja.json@@ -524,7 +524,7 @@"Rewrite the helper/loop into explicit tweens so this keyframe edits directly": "ヘルパー/ループを明示的なトゥイーンに書き換えて、このキーフレームが直接編集されるようにします","Ripple off: deleting a main-track clip leaves a gap": "リップルオフ: メイントラックのクリップを削除するとギャップが残る","Ripple on: keeps the main track gapless": "リップル編集がオンになっています: メイントラックにギャップがない状態を保ちます",- "Root": "主な構成",+ "Root": "メインコンポジション","Root composition: opens automatically on load": "メイン構成: ロード時に自動的に開きます","Rotate": "回転","Rotate element to follow path tangent": "パス接線に沿って要素を回転します",@@ -1173,7 +1173,7 @@"Close project list": "プロジェクトリストを閉じる","Collapse project list": "プロジェクトリストを折りたたむ","Expand project list": "プロジェクトリストを展開する",- "Connect Agent": "コネクトエージェント",+ "Connect Agent": "エージェントに接続","Search projects…": "検索項目…","Search projects": "検索項目","Loading projects…": "項目を読み込んでいます...",@@ -1707,5 +1707,11 @@"deepseek": "深い検索","chatgpt": "チャットGPT","TimeoutError": "タイムアウトエラー",- "{count} elements selected": "{count} 個の要素を選択中"+ "{count} elements selected": "{count} 個の要素を選択中",+ "Valid bezier values": "ベジェ値は有効です",+ "Processing": "処理中",+ "Text {index}": "テキスト {index}",+ "FFmpeg not found": "FFmpeg が見つかりません",+ "FFmpeg is required to encode video.": "動画のエンコードには FFmpeg が必要です。",+ "Drop media here": "ここにメディアをドロップ"}diff --git a/studio/src/i18n/ko.json b/studio/src/i18n/ko.jsonindex 166041b5..ee7e8de9 100644--- a/studio/src/i18n/ko.json+++ b/studio/src/i18n/ko.json@@ -524,7 +524,7 @@"Rewrite the helper/loop into explicit tweens so this keyframe edits directly": "이 키프레임이 직접 편집되도록 도우미/루프를 명시적 트윈으로 다시 작성합니다.","Ripple off: deleting a main-track clip leaves a gap": "잔물결 꺼짐: 메인 트랙 클립을 삭제하면 공백이 남습니다.","Ripple on: keeps the main track gapless": "잔물결 편집이 켜져 있습니다. 메인 트랙에 간격이 없도록 유지합니다.",- "Root": "주요 구성",+ "Root": "메인 컴포지션","Root composition: opens automatically on load": "주요 구성 : 로드시 자동으로 열림","Rotate": "회전","Rotate element to follow path tangent": "경로 접선을 따라 요소 회전",@@ -1173,7 +1173,7 @@"Close project list": "프로젝트 목록 닫기","Collapse project list": "프로젝트 목록 접기","Expand project list": "프로젝트 목록 확장",- "Connect Agent": "에이전트 연결",+ "Connect Agent": "Agent 연결","Search projects…": "항목 검색…","Search projects": "검색항목","Loading projects…": "항목을 읽는 중...",@@ -1707,5 +1707,11 @@"deepseek": "심층 검색","chatgpt": "채팅 GPT","TimeoutError": "시간 초과 오류",- "{count} elements selected": "요소 {count}개 선택됨"+ "{count} elements selected": "요소 {count}개 선택됨",+ "Valid bezier values": "올바른 베지어 값",+ "Processing": "처리 중",+ "Text {index}": "텍스트 {index}",+ "FFmpeg not found": "FFmpeg를 찾을 수 없습니다",+ "FFmpeg is required to encode video.": "동영상을 인코딩하려면 FFmpeg가 필요합니다.",+ "Drop media here": "여기에 미디어를 놓으세요"}diff --git a/studio/src/i18n/pt-BR.json b/studio/src/i18n/pt-BR.jsonindex 595ef0d3..80a9c488 100644--- a/studio/src/i18n/pt-BR.json+++ b/studio/src/i18n/pt-BR.json@@ -1206,7 +1206,7 @@"Close project list": "Fechar lista de projetos","Collapse project list": "Recolher lista de projetos","Expand project list": "Expandir lista de projetos",- "Connect Agent": "Conectar Agente",+ "Connect Agent": "Conectar Agent","Search projects…": "Pesquisar itens…","Search projects": "Itens de pesquisa","Loading projects…": "Lendo itens...",@@ -1743,5 +1743,11 @@"{count} elements selected": {"one": "{count} elemento selecionado","other": "{count} elementos selecionados"- }+ },+ "Valid bezier values": "Valores Bézier válidos",+ "Processing": "Processando",+ "Text {index}": "Texto {index}",+ "FFmpeg not found": "FFmpeg não encontrado",+ "FFmpeg is required to encode video.": "O FFmpeg é necessário para codificar vídeos.",+ "Drop media here": "Solte a mídia aqui"}diff --git a/studio/src/i18n/ru.json b/studio/src/i18n/ru.jsonindex e4f4d1b6..9950c534 100644--- a/studio/src/i18n/ru.json+++ b/studio/src/i18n/ru.json@@ -524,7 +524,7 @@"Rewrite the helper/loop into explicit tweens so this keyframe edits directly": "Перепишите вспомогательный цикл/помощник в явную анимацию, чтобы этот ключевой кадр редактировался напрямую.","Ripple off: deleting a main-track clip leaves a gap": "Ripple off: удаление клипа основной дорожки оставляет пробел","Ripple on: keeps the main track gapless": "Редактирование Ripple включено: не допускайте пробелов в основной дорожке.",- "Root": "Основной состав",+ "Root": "Главная композиция","Root composition: opens automatically on load": "Основной состав: автоматически открывается при загрузке.","Rotate": "Вращение","Rotate element to follow path tangent": "Поворот элемента по касательной к траектории",@@ -1228,7 +1228,7 @@"Close project list": "Закрыть список проектов","Collapse project list": "Свернуть список проектов","Expand project list": "Развернуть список проектов",- "Connect Agent": "Подключить агента",+ "Connect Agent": "Подключить Agent","Search projects…": "Поиск предметов…","Search projects": "Поиск предметов","Loading projects…": "Чтение предметов...",@@ -1767,5 +1767,11 @@"few": "Выбрано {count} элемента","many": "Выбрано {count} элементов","other": "Выбрано {count} элемента"- }+ },+ "Valid bezier values": "Корректные значения Безье",+ "Processing": "Обработка",+ "Text {index}": "Текст {index}",+ "FFmpeg not found": "FFmpeg не найден",+ "FFmpeg is required to encode video.": "Для кодирования видео требуется FFmpeg.",+ "Drop media here": "Перетащите медиа сюда"}diff --git a/studio/src/i18n/tr.json b/studio/src/i18n/tr.jsonindex a5bc5ca7..1ed79a89 100644--- a/studio/src/i18n/tr.json+++ b/studio/src/i18n/tr.json@@ -1173,7 +1173,7 @@"Close project list": "Proje listesini kapat","Collapse project list": "Proje listesini daralt","Expand project list": "Proje listesini genişlet",- "Connect Agent": "Aracıyı Bağla",+ "Connect Agent": "Agent bağla","Search projects…": "Öğeleri ara…","Search projects": "Arama öğeleri","Loading projects…": "Öğeler okunuyor...",@@ -1707,5 +1707,11 @@"deepseek": "Derin arama","chatgpt": "Sohbet GPT'si","TimeoutError": "Zaman aşımı hatası",- "{count} elements selected": "{count} öğe seçildi"+ "{count} elements selected": "{count} öğe seçildi",+ "Valid bezier values": "Geçerli Bézier değerleri",+ "Processing": "İşleniyor",+ "Text {index}": "Metin {index}",+ "FFmpeg not found": "FFmpeg bulunamadı",+ "FFmpeg is required to encode video.": "Video kodlamak için FFmpeg gereklidir.",+ "Drop media here": "Medyayı buraya bırakın"}diff --git a/studio/src/i18n/zh-CN.json b/studio/src/i18n/zh-CN.jsonindex 080bdf97..d760e555 100644--- a/studio/src/i18n/zh-CN.json+++ b/studio/src/i18n/zh-CN.json@@ -1707,5 +1707,11 @@"deepseek": "深度搜寻","chatgpt": "聊天GPT","TimeoutError": "超时错误",- "{count} elements selected": "已选中 {count} 个元素"+ "{count} elements selected": "已选中 {count} 个元素",+ "Valid bezier values": "贝塞尔参数有效",+ "Processing": "正在处理",+ "Text {index}": "文字 {index}",+ "FFmpeg not found": "未找到 FFmpeg",+ "FFmpeg is required to encode video.": "编码视频需要 FFmpeg。",+ "Drop media here": "将媒体拖到这里"}diff --git a/studio/src/player/components/KeyframeDiamondContextMenu.tsx b/studio/src/player/components/KeyframeDiamondContextMenu.tsxindex 9fd75c33..b4f427b1 100644--- a/studio/src/player/components/KeyframeDiamondContextMenu.tsx+++ b/studio/src/player/components/KeyframeDiamondContextMenu.tsx@@ -127,7 +127,7 @@ export function KeyframeDiamondContextMenu({}}><span>{t("Edit Ease…")}</span>- <span className="text-[10px] text-neutral-500">{state.currentEase ?? "default"}</span>+ <span className="text-[10px] text-neutral-500">{state.currentEase ?? t("Default")}</span></button>)}diff --git a/studio/src/player/components/Timeline.ghostLane.test.tsx b/studio/src/player/components/Timeline.ghostLane.test.tsxindex dfc01264..d44772c6 100644--- a/studio/src/player/components/Timeline.ghostLane.test.tsx+++ b/studio/src/player/components/Timeline.ghostLane.test.tsx@@ -1,6 +1,8 @@// @vitest-environment happy-domimport { act } from "react";+import { I18nProvider } from "../../i18n/I18n";+import { Timeline } from "./Timeline";import { afterEach, describe, expect, it, vi } from "vitest";import {mountThreeTrackTimeline as mountThreeTracks,@@ -31,6 +33,14 @@ describe("Timeline ghost lane", () => {act(() => root.unmount());});+ it("localizes the drop hint in the product language", async () => {+ const onAssetDrop = vi.fn();+ const { root, ghost } = await mountThreeTracks({ onAssetDrop });+ act(() => root.render(<I18nProvider initialLocale="de"><Timeline onAssetDrop={onAssetDrop} /></I18nProvider>));+ expect(ghost()?.textContent).toBe("Medien hier ablegen");+ act(() => root.unmount());+ });+it("drops the hint without a drop handler and the lane without a bottom pad", async () => {const readOnly = await mountThreeTracks();expect(readOnly.ghost()?.textContent).toBe("");diff --git a/studio/src/player/components/TimelineCanvas.tsx b/studio/src/player/components/TimelineCanvas.tsxindex 39291620..f6daf37f 100644--- a/studio/src/player/components/TimelineCanvas.tsx+++ b/studio/src/player/components/TimelineCanvas.tsx@@ -1,3 +1,4 @@+import { useI18n } from "../../i18n/I18n";import { memo } from "react";import { TimelineRulerPart } from "./TimelineRulerPart";import { PlayheadIndicator } from "./PlayheadIndicator";@@ -12,6 +13,7 @@ import { useTimelineContext } from "./TimelineProvider";const DROP_PREVIEW_SECONDS = 3;export const TimelineCanvas = memo(function TimelineCanvas() {+ const { t } = useI18n();const { state, actions } = useTimelineContext();const props = state.canvas;const { draggedClip, scrollRef, displayTrackOrder } = props;@@ -95,7 +97,7 @@ export const TimelineCanvas = memo(function TimelineCanvas() {height: TRACK_H - CLIP_Y * 2,}}>- {props.acceptsMediaDrop && "Drop media here"}+ {props.acceptsMediaDrop && t("Drop media here")}</div>)}