Skip to content

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

feat(captions): pick the caption position from the camera-style anchor grid

EtienneLescot2b3ebfe32176
diff --git a/src/components/ai-edition/CaptionsPane.placement.test.tsx b/src/components/ai-edition/CaptionsPane.placement.test.tsx
index c6b890ec3..62fe218a8 100644
--- a/src/components/ai-edition/CaptionsPane.placement.test.tsx
+++ b/src/components/ai-edition/CaptionsPane.placement.test.tsx
@@ -111,7 +111,10 @@ describe("caption placement controls", () => {
show({});
expect(button("Bottom")).toHaveAttribute("aria-pressed", "true");
expect(button("Top")).toHaveAttribute("aria-pressed", "false");
- expect(button("Center")).toHaveAttribute("aria-pressed", "true");
+ // Six anchors, like the camera grid without its middle row.
+ expect(screen.getAllByRole("button", { name: /^(Top|Bottom)( left| right)?$/ })).toHaveLength(
+ 6,
+ );
expect(sliderFor("Distance from bottom")).toBeInTheDocument();
});
@@ -130,7 +133,7 @@ describe("caption placement controls", () => {
it("never offers a negative distance", () => {
show({});
expect(Number(sliderFor("Distance from bottom").min)).toBe(0);
- fireEvent.click(button("Left"));
+ fireEvent.click(button("Bottom left"));
expect(Number(sliderFor("Distance from left").min)).toBe(0);
});
@@ -149,13 +152,13 @@ describe("caption placement controls", () => {
expect(screen.queryByText("Distance from left")).not.toBeInTheDocument();
expect(screen.queryByText("Distance from right")).not.toBeInTheDocument();
- fireEvent.click(button("Right"));
+ fireEvent.click(button("Bottom right"));
expect(sliderFor("Distance from right")).toBeEnabled();
});
it("leaves no control disabled once a document is open", () => {
show({});
- for (const name of ["Bottom", "Top", "Left", "Center", "Right"]) {
+ for (const name of ["Top left", "Top", "Top right", "Bottom left", "Bottom", "Bottom right"]) {
expect(button(name)).toBeEnabled();
}
expect(sliderFor("Distance from bottom")).toBeEnabled();
@@ -180,13 +183,6 @@ describe("caption placement controls", () => {
expect(screen.queryByText("Horizontal offset")).not.toBeInTheDocument();
expect(screen.queryByRole("button", { name: "Middle" })).not.toBeInTheDocument();
});
-
- it("explains which way a long caption grows", () => {
- show({ anchorV: "bottom" });
- expect(screen.getByText(/grow upward/i)).toBeInTheDocument();
- fireEvent.click(button("Top"));
- expect(screen.getByText(/grow downward/i)).toBeInTheDocument();
- });
});
describe("migrating a pre-anchor project into the pane", () => {
diff --git a/src/components/ai-edition/CaptionsPane.tsx b/src/components/ai-edition/CaptionsPane.tsx
index e1ea3ae7e..e9cca7e5f 100644
--- a/src/components/ai-edition/CaptionsPane.tsx
+++ b/src/components/ai-edition/CaptionsPane.tsx
@@ -68,6 +68,46 @@ const TRANSLATION_LANGUAGES: ReadonlyArray<{ code: string; label: string }> = [
{ code: "zh", label: "中文" },
];
+const CAPTION_ANCHORS = (["top", "bottom"] as const).flatMap((v) =>
+ (["left", "center", "right"] as const).map((h) => [v, h] as const),
+);
+
+const CAPTION_ANCHOR_KEYS: Record<string, string> = {
+ "top-left": "layout.anchors.topLeft",
+ "top-center": "layout.anchors.top",
+ "top-right": "layout.anchors.topRight",
+ "bottom-left": "layout.anchors.bottomLeft",
+ "bottom-center": "layout.anchors.bottom",
+ "bottom-right": "layout.anchors.bottomRight",
+};
+
+/** The frame with a caption line where this anchor puts it (same viewBox as the camera icons). */
+function captionAnchorIcon(v: CaptionAnchorV, h: CaptionAnchorH) {
+ const fx = h === "left" ? 0 : h === "center" ? 0.5 : 1;
+ return (
+ <svg
+ viewBox="0 0 32 22"
+ width={32}
+ height={22}
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1.75"
+ aria-hidden="true"
+ >
+ <rect x="1.5" y="1.5" width="29" height="19" rx="3" />
+ <rect
+ x={5 + fx * 10}
+ y={v === "top" ? 5 : 14}
+ width="12"
+ height="3"
+ rx="1.5"
+ fill="currentColor"
+ stroke="none"
+ />
+ </svg>
+ );
+}
+
export function CaptionsPane({ onClose }: { onClose?: () => void } = {}) {
const t = useScopedT("settings");
const te = useScopedT("editor");
@@ -542,28 +582,25 @@ export function CaptionsPane({ onClose }: { onClose?: () => void } = {}) {
against that invisible band, and a text alignment fighting the offset for
the same visual outcome. */}
<div className={styles.sectionLabel}>{t("captions.position")}</div>
- <Segmented<CaptionAnchorV>
- value={settings.anchorV}
- disabled={disabled}
- options={[
- { value: "bottom", label: t("captions.anchorBottom") },
- { value: "top", label: t("captions.anchorTop") },
- ]}
- // No offset to reset: the inset means the same thing on both anchors, so
- // flipping mirrors the caption to the same distance from the opposite edge.
- onChange={(anchorV) => void set({ anchorV })}
- />
- <p
- style={{
- margin: "6px var(--sp-4) 10px",
- font: "400 11px/1.5 var(--font-body)",
- color: "var(--muted)",
- }}
- >
- {settings.anchorV === "bottom"
- ? t("captions.anchorHintBottom")
- : t("captions.anchorHintTop")}
- </p>
+ {/* Same 3-column picker as the camera position, minus the middle row: a
+ caption is anchored to the top or bottom edge, never the centre. */}
+ <div style={{ padding: "0 var(--sp-4) 12px" }}>
+ <ChoiceRow<string>
+ label={t("captions.position")}
+ columns={3}
+ options={CAPTION_ANCHORS.map(([v, h]) => ({
+ value: `${v}-${h}`,
+ label: t(CAPTION_ANCHOR_KEYS[`${v}-${h}`]),
+ icon: captionAnchorIcon(v, h),
+ }))}
+ value={`${settings.anchorV}-${settings.anchorH}`}
+ disabled={disabled}
+ onChange={(key) => {
+ const [anchorV, anchorH] = key.split("-") as [CaptionAnchorV, CaptionAnchorH];
+ void set({ anchorV, anchorH });
+ }}
+ />
+ </div>
<div className={styles.sliderGrid}>
<SliderCell
label={
@@ -584,16 +621,6 @@ export function CaptionsPane({ onClose }: { onClose?: () => void } = {}) {
/>
</div>
- <Segmented<CaptionAnchorH>
- value={settings.anchorH}
- disabled={disabled}
- options={[
- { value: "left", label: t("captions.alignLeft") },
- { value: "center", label: t("captions.alignCenter") },
- { value: "right", label: t("captions.alignRight") },
- ]}
- onChange={(anchorH) => void set({ anchorH })}
- />
{/* Centre has no edge to measure from, so the control is ABSENT rather than
disabled — a dead slider reads as a bug. */}
{settings.anchorH === "center" ? null : (
@@ -673,41 +700,3 @@ const selectStyle: React.CSSProperties = {
minWidth: 120,
cursor: "pointer",
};
-
-/**
- * One "label + swatch" row that opens the app's standard `ColorPicker` (wheel /
- * palette / hex) in a popover.
- *
- * The pane used to carry its own hard-coded caption swatches. That was a third
- * private palette in the app, and it meant the caption colours behaved unlike
- * every other colour surface — so it's gone: this defers to the shared
- * `COLOR_PALETTE` and the shared picker instead.
- */
-function Segmented<T extends string>({
- value,
- options,
- disabled,
- onChange,
-}: {
- value: T;
- options: ReadonlyArray<{ value: T; label: string }>;
- disabled?: boolean;
- onChange: (next: T) => void;
-}) {
- return (
- <div className={styles.paneTabs}>
- {options.map((option) => (
- <button
- type="button"
- key={option.value}
- className={value === option.value ? styles.isActive : ""}
- aria-pressed={value === option.value}
- disabled={disabled}
- onClick={() => onChange(option.value)}
- >
- {option.label}
- </button>
- ))}
- </div>
- );
-}
diff --git a/src/i18n/locales/ar/settings.json b/src/i18n/locales/ar/settings.json
index 38f7d10aa..524377004 100644
--- a/src/i18n/locales/ar/settings.json
+++ b/src/i18n/locales/ar/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "لا يزال هذا المشروع يحتوي على تعليقات ترجمة من الميزة القديمة ({{count}}). تُرسم فوق طبقة الترجمة.",
"backgroundOpacity": "العتامة",
"backgroundColor": "لون الخلفية",
- "alignCenter": "توسيط",
"translationIsNonDestructive": "تُحفظ الترجمات بجانب النص المفرّغ لا داخله — يبقى النص الأصلي وتوقيتاته دون تغيير.",
"distanceFromRight": "المسافة من اليمين",
"language": "اللغة",
"text": "النص",
- "anchorHintBottom": "الترجمات الطويلة تمتد إلى أعلى — الحافة السفلية لا تتحرك.",
"distanceFromTop": "المسافة من الأعلى",
"translateFailed": "فشلت الترجمة.",
- "alignLeft": "يسار",
"distanceFromBottom": "المسافة من الأسفل",
"derivedFromTranscript": "{{count}} سطر ترجمة، مشتقة مباشرةً من النص المفرّغ.",
"translate": "ترجمة",
@@ -228,14 +225,10 @@
"hiddenHint": "تأتي الترجمة من النص المفرّغ لهذه الوسائط. فعّلها لرؤيتها في المعاينة وفي التصدير.",
"noTranscript": "تُقرأ الترجمة من نص الوسائط. فرّغ نص هذا الفيديو لتفعيلها.",
"distanceFromLeft": "المسافة من اليسار",
- "anchorBottom": "أسفل",
"transcribe": "تفريغ نص الفيديو",
"bold": "عريض",
- "alignRight": "يمين",
- "anchorTop": "أعلى",
"minWords": "أقل عدد كلمات في السطر",
"translateHint": "ترجمة النص المفرّغ باستخدام مزوّد الذكاء الاصطناعي المُعدّ",
- "anchorHintTop": "الترجمات الطويلة تمتد إلى أسفل — الحافة العلوية لا تتحرك.",
"displayLanguage": "العرض",
"removeLegacyAnnotations": "إزالة تعليقات الترجمة القديمة",
"background": "الخلفية",
diff --git a/src/i18n/locales/cs/settings.json b/src/i18n/locales/cs/settings.json
index 64a0941b5..869d9b53b 100644
--- a/src/i18n/locales/cs/settings.json
+++ b/src/i18n/locales/cs/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "Tento projekt stále obsahuje anotace titulků ze staré funkce titulků ({{count}}). Renderují se na vrstvě titulků.",
"backgroundOpacity": "Průhlednost",
"backgroundColor": "Barva pozadí",
- "alignCenter": "Na střed",
"translationIsNonDestructive": "Překlady jsou uloženy vedle přepisu, nikdy v něm. Původní text a jeho časování zůstávají nedotčeny.",
"distanceFromRight": "Vzdálenost zprava",
"language": "Jazyk",
"text": "Text",
- "anchorHintBottom": "Dlouhé titulky rostou nahoru, spodní okraj zůstává na místě.",
"distanceFromTop": "Vzdálenost shora",
"translateFailed": "Překlad selhal.",
- "alignLeft": "Vlevo",
"distanceFromBottom": "Vzdálenost zdola",
"derivedFromTranscript": "{{count}} řádků titulků, odvozených živě z přepisu.",
"translate": "Přeložit",
@@ -228,14 +225,10 @@
"hiddenHint": "Titulky pocházejí z přepisu tohoto média. Zapněte je pro zobrazení v náhledu a při exportu.",
"noTranscript": "Titulky jsou čteny z přepisu média. Přepište toto video pro jejich zapnutí.",
"distanceFromLeft": "Vzdálenost zleva",
- "anchorBottom": "Dolní",
"transcribe": "Přepsat video",
"bold": "Tučně",
- "alignRight": "Vpravo",
- "anchorTop": "Horní",
"minWords": "Min. slov na řádek",
"translateHint": "Přeložit přepis pomocí nakonfigurovaného poskytovatele AI",
- "anchorHintTop": "Dlouhé titulky rostou dolů, horní okraj zůstává na místě.",
"displayLanguage": "Zobrazení",
"removeLegacyAnnotations": "Odebrat staré anotace titulků",
"background": "Pozadí",
diff --git a/src/i18n/locales/de/settings.json b/src/i18n/locales/de/settings.json
index 8a069bbd3..654ee165e 100644
--- a/src/i18n/locales/de/settings.json
+++ b/src/i18n/locales/de/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "Dieses Projekt enthält noch Untertitel-Anmerkungen aus der alten Untertitel-Funktion ({{count}}). Sie werden über der Untertitel-Ebene gerendert.",
"backgroundOpacity": "Deckkraft",
"backgroundColor": "Hintergrundfarbe",
- "alignCenter": "Zentriert",
"translationIsNonDestructive": "Übersetzungen werden neben dem Transkript gespeichert, nie darin — der Originaltext und seine Timings bleiben unangetastet.",
"distanceFromRight": "Abstand von rechts",
"language": "Sprache",
"text": "Text",
- "anchorHintBottom": "Lange Untertitel wachsen nach oben — die Unterkante bleibt, wo sie ist.",
"distanceFromTop": "Abstand von oben",
"translateFailed": "Übersetzung fehlgeschlagen.",
- "alignLeft": "Links",
"distanceFromBottom": "Abstand von unten",
"derivedFromTranscript": "{{count}} Untertitelzeilen, live aus dem Transkript abgeleitet.",
"translate": "Übersetzen",
@@ -228,14 +225,10 @@
"hiddenHint": "Untertitel stammen aus dem Transkript dieses Mediums. Schalte sie ein, um sie in der Vorschau und in Exporten zu sehen.",
"noTranscript": "Untertitel werden aus dem Medien-Transkript gelesen. Transkribiere dieses Video, um sie einzuschalten.",
"distanceFromLeft": "Abstand von links",
- "anchorBottom": "Unten",
"transcribe": "Video transkribieren",
"bold": "Fett",
- "alignRight": "Rechts",
- "anchorTop": "Oben",
"minWords": "Min. Wörter pro Zeile",
"translateHint": "Das Transkript mit dem konfigurierten KI-Anbieter übersetzen",
- "anchorHintTop": "Lange Untertitel wachsen nach unten — die Oberkante bleibt, wo sie ist.",
"displayLanguage": "Anzeige",
"removeLegacyAnnotations": "Alte Untertitel-Anmerkungen entfernen",
"background": "Hintergrund",
diff --git a/src/i18n/locales/en/settings.json b/src/i18n/locales/en/settings.json
index 341a3ccf3..5f29abb3c 100644
--- a/src/i18n/locales/en/settings.json
+++ b/src/i18n/locales/en/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "This project still contains caption annotations from the old captions feature ({{count}}). They render on top of the caption layer.",
"backgroundOpacity": "Opacity",
"backgroundColor": "Background color",
- "alignCenter": "Center",
"translationIsNonDestructive": "Translations are stored beside the transcript, never in it — the original text and its timings stay untouched.",
"distanceFromRight": "Distance from right",
"language": "Language",
"text": "Text",
- "anchorHintBottom": "Long captions grow upward — the bottom edge stays put.",
"distanceFromTop": "Distance from top",
"translateFailed": "Translation failed.",
- "alignLeft": "Left",
"distanceFromBottom": "Distance from bottom",
"derivedFromTranscript": "{{count}} caption lines, derived live from the transcript.",
"translate": "Translate",
@@ -228,14 +225,10 @@
"hiddenHint": "Captions come from this media's transcript. Turn them on to see them in the preview and in exports.",
"noTranscript": "Captions are read from the media transcript. Transcribe this video to turn them on.",
"distanceFromLeft": "Distance from left",
- "anchorBottom": "Bottom",
"transcribe": "Transcribe video",
"bold": "Bold",
- "alignRight": "Right",
- "anchorTop": "Top",
"minWords": "Min words per line",
"translateHint": "Translate the transcript with the configured AI provider",
- "anchorHintTop": "Long captions grow downward — the top edge stays put.",
"displayLanguage": "Display",
"removeLegacyAnnotations": "Remove old caption annotations",
"background": "Background",
diff --git a/src/i18n/locales/es/settings.json b/src/i18n/locales/es/settings.json
index 3b86b668b..93c463f1e 100644
--- a/src/i18n/locales/es/settings.json
+++ b/src/i18n/locales/es/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "Este proyecto todavía contiene anotaciones de subtítulos de la función antigua ({{count}}). Se dibujan encima de la capa de subtítulos.",
"backgroundOpacity": "Opacidad",
"backgroundColor": "Color del fondo",
- "alignCenter": "Centro",
"translationIsNonDestructive": "Las traducciones se guardan junto a la transcripción, nunca dentro: el texto original y sus tiempos quedan intactos.",
"distanceFromRight": "Distancia desde la derecha",
"language": "Idioma",
"text": "Texto",
- "anchorHintBottom": "Los subtítulos largos crecen hacia arriba: el borde inferior no se mueve.",
"distanceFromTop": "Distancia desde arriba",
"translateFailed": "La traducción ha fallado.",
- "alignLeft": "Izquierda",
"distanceFromBottom": "Distancia desde abajo",
"derivedFromTranscript": "{{count}} líneas de subtítulos, derivadas en vivo de la transcripción.",
"translate": "Traducir",
@@ -228,14 +225,10 @@
"hiddenHint": "Los subtítulos provienen de la transcripción de este recurso. Actívalos para verlos en la vista previa y en las exportaciones.",
"noTranscript": "Los subtítulos se leen de la transcripción del recurso. Transcribe este vídeo para activarlos.",
"distanceFromLeft": "Distancia desde la izquierda",
- "anchorBottom": "Abajo",
"transcribe": "Transcribir vídeo",
"bold": "Negrita",
- "alignRight": "Derecha",
- "anchorTop": "Arriba",
"minWords": "Mín. palabras por línea",
"translateHint": "Traducir la transcripción con el proveedor de IA configurado",
- "anchorHintTop": "Los subtítulos largos crecen hacia abajo: el borde superior no se mueve.",
"displayLanguage": "Visualización",
"removeLegacyAnnotations": "Eliminar anotaciones de subtítulos antiguas",
"background": "Fondo",
diff --git a/src/i18n/locales/fr/settings.json b/src/i18n/locales/fr/settings.json
index bb49313e9..ddfb18735 100644
--- a/src/i18n/locales/fr/settings.json
+++ b/src/i18n/locales/fr/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "Ce projet contient encore des annotations de sous-titres issues de l'ancienne fonctionnalité ({{count}}). Elles s'affichent par-dessus les sous-titres.",
"backgroundOpacity": "Opacité",
"backgroundColor": "Couleur du fond",
- "alignCenter": "Centre",
"translationIsNonDestructive": "Les traductions sont stockées à côté de la transcription, jamais dedans — le texte original et ses timings restent intacts.",
"distanceFromRight": "Distance depuis la droite",
"language": "Langue",
"text": "Texte",
- "anchorHintBottom": "Les sous-titres longs s'étendent vers le haut — le bord bas ne bouge pas.",
"distanceFromTop": "Distance depuis le haut",
"translateFailed": "La traduction a échoué.",
- "alignLeft": "Gauche",
"distanceFromBottom": "Distance depuis le bas",
"derivedFromTranscript": "{{count}} lignes de sous-titres, dérivées de la transcription en direct.",
"translate": "Traduire",
@@ -228,14 +225,10 @@
"hiddenHint": "Les sous-titres proviennent de la transcription de ce média. Activez-les pour les voir dans l'aperçu et à l'export.",
"noTranscript": "Les sous-titres sont issus de la transcription du média. Transcrivez cette vidéo pour les activer.",
"distanceFromLeft": "Distance depuis la gauche",
- "anchorBottom": "Bas",
"transcribe": "Transcrire la vidéo",
"bold": "Gras",
- "alignRight": "Droite",
- "anchorTop": "Haut",
"minWords": "Mots min. par ligne",
"translateHint": "Traduire la transcription avec le fournisseur IA configuré",
- "anchorHintTop": "Les sous-titres longs s'étendent vers le bas — le bord haut ne bouge pas.",
"displayLanguage": "Affichage",
"removeLegacyAnnotations": "Supprimer les anciennes annotations",
"background": "Fond",
diff --git a/src/i18n/locales/it/settings.json b/src/i18n/locales/it/settings.json
index 4217fada4..8b8062379 100644
--- a/src/i18n/locales/it/settings.json
+++ b/src/i18n/locales/it/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "Questo progetto contiene ancora annotazioni di sottotitoli della vecchia funzione ({{count}}). Vengono disegnate sopra il livello dei sottotitoli.",
"backgroundOpacity": "Opacità",
"backgroundColor": "Colore dello sfondo",
- "alignCenter": "Centro",
"translationIsNonDestructive": "Le traduzioni vengono salvate accanto alla trascrizione, mai al suo interno: il testo originale e i suoi tempi restano intatti.",
"distanceFromRight": "Distanza da destra",
"language": "Lingua",
"text": "Testo",
- "anchorHintBottom": "I sottotitoli lunghi crescono verso l'alto: il bordo inferiore non si sposta.",
"distanceFromTop": "Distanza dall'alto",
"translateFailed": "Traduzione non riuscita.",
- "alignLeft": "Sinistra",
"distanceFromBottom": "Distanza dal basso",
"derivedFromTranscript": "{{count}} righe di sottotitoli, derivate dal vivo dalla trascrizione.",
"translate": "Traduci",
@@ -228,14 +225,10 @@
"hiddenHint": "I sottotitoli provengono dalla trascrizione di questo media. Attivali per vederli nell'anteprima e nelle esportazioni.",
"noTranscript": "I sottotitoli vengono letti dalla trascrizione del media. Trascrivi questo video per attivarli.",
"distanceFromLeft": "Distanza da sinistra",
- "anchorBottom": "Basso",
"transcribe": "Trascrivi video",
"bold": "Grassetto",
- "alignRight": "Destra",
- "anchorTop": "Alto",
"minWords": "Parole min. per riga",
"translateHint": "Traduci la trascrizione con il provider IA configurato",
- "anchorHintTop": "I sottotitoli lunghi crescono verso il basso: il bordo superiore non si sposta.",
"displayLanguage": "Visualizzazione",
"removeLegacyAnnotations": "Rimuovi le vecchie annotazioni dei sottotitoli",
"background": "Sfondo",
diff --git a/src/i18n/locales/ja-JP/settings.json b/src/i18n/locales/ja-JP/settings.json
index 23d7b70ae..e9aa09f79 100644
--- a/src/i18n/locales/ja-JP/settings.json
+++ b/src/i18n/locales/ja-JP/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "このプロジェクトには旧字幕機能の注釈が残っています({{count}})。字幕レイヤーの上に描画されます。",
"backgroundOpacity": "不透明度",
"backgroundColor": "背景色",
- "alignCenter": "中央",
"translationIsNonDestructive": "翻訳は文字起こしの中ではなく横に保存されます。元のテキストとタイミングはそのまま残ります。",
"distanceFromRight": "右端からの距離",
"language": "言語",
"text": "テキスト",
- "anchorHintBottom": "長い字幕は上に伸びます(下端は動きません)。",
"distanceFromTop": "上端からの距離",
"translateFailed": "翻訳に失敗しました。",
- "alignLeft": "左",
"distanceFromBottom": "下端からの距離",
"derivedFromTranscript": "文字起こしからリアルタイムに生成された字幕 {{count}} 行。",
"translate": "翻訳",
@@ -228,14 +225,10 @@
"hiddenHint": "字幕はこのメディアの文字起こしから生成されます。オンにするとプレビューと書き出しに表示されます。",
"noTranscript": "字幕はメディアの文字起こしから読み込まれます。有効にするにはこの動画を文字起こししてください。",
"distanceFromLeft": "左端からの距離",
- "anchorBottom": "下",
"transcribe": "動画を文字起こし",
"bold": "太字",
- "alignRight": "右",
- "anchorTop": "上",
"minWords": "1 行の最小単語数",
"translateHint": "設定した AI プロバイダーで文字起こしを翻訳します",
- "anchorHintTop": "長い字幕は下に伸びます(上端は動きません)。",
"displayLanguage": "表示",
"removeLegacyAnnotations": "古い字幕の注釈を削除",
"background": "背景",
diff --git a/src/i18n/locales/ko-KR/settings.json b/src/i18n/locales/ko-KR/settings.json
index ffcb06399..b292f2f14 100644
--- a/src/i18n/locales/ko-KR/settings.json
+++ b/src/i18n/locales/ko-KR/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "이 프로젝트에는 이전 자막 기능의 주석이 남아 있습니다({{count}}개). 자막 레이어 위에 그려집니다.",
"backgroundOpacity": "불투명도",
"backgroundColor": "배경 색",
- "alignCenter": "가운데",
"translationIsNonDestructive": "번역은 전사 안이 아니라 옆에 저장됩니다 — 원본 텍스트와 타이밍은 그대로 유지됩니다.",
"distanceFromRight": "오른쪽에서의 거리",
"language": "언어",
"text": "텍스트",
- "anchorHintBottom": "긴 자막은 위로 늘어납니다 — 아래쪽 가장자리는 그대로입니다.",
"distanceFromTop": "위에서의 거리",
"translateFailed": "번역에 실패했습니다.",
- "alignLeft": "왼쪽",
"distanceFromBottom": "아래에서의 거리",
"derivedFromTranscript": "전사에서 실시간으로 생성된 자막 {{count}}줄.",
"translate": "번역",
@@ -228,14 +225,10 @@
"hiddenHint": "자막은 이 미디어의 전사에서 만들어집니다. 켜면 미리보기와 내보내기에서 볼 수 있습니다.",
"noTranscript": "자막은 미디어 전사에서 읽어옵니다. 켜려면 이 동영상을 전사하세요.",
"distanceFromLeft": "왼쪽에서의 거리",
- "anchorBottom": "아래",
"transcribe": "동영상 전사하기",
"bold": "굵게",
- "alignRight": "오른쪽",
- "anchorTop": "위",
"minWords": "줄당 최소 단어 수",
"translateHint": "설정된 AI 제공자로 전사를 번역합니다",
- "anchorHintTop": "긴 자막은 아래로 늘어납니다 — 위쪽 가장자리는 그대로입니다.",
"displayLanguage": "표시",
"removeLegacyAnnotations": "이전 자막 주석 제거",
"background": "배경",
diff --git a/src/i18n/locales/pt-BR/settings.json b/src/i18n/locales/pt-BR/settings.json
index 55fab2fa0..e2853f886 100644
--- a/src/i18n/locales/pt-BR/settings.json
+++ b/src/i18n/locales/pt-BR/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "Este projeto ainda contém anotações de legenda do recurso antigo ({{count}}). Elas são desenhadas sobre a camada de legendas.",
"backgroundOpacity": "Opacidade",
"backgroundColor": "Cor do fundo",
- "alignCenter": "Centro",
"translationIsNonDestructive": "As traduções são guardadas ao lado da transcrição, nunca dentro dela — o texto original e seus tempos permanecem intactos.",
"distanceFromRight": "Distância da direita",
"language": "Idioma",
"text": "Texto",
- "anchorHintBottom": "Legendas longas crescem para cima — a borda inferior não se move.",
"distanceFromTop": "Distância do topo",
"translateFailed": "A tradução falhou.",
- "alignLeft": "Esquerda",
"distanceFromBottom": "Distância da base",
"derivedFromTranscript": "{{count}} linhas de legenda, derivadas ao vivo da transcrição.",
"translate": "Traduzir",
@@ -228,14 +225,10 @@
"hiddenHint": "As legendas vêm da transcrição desta mídia. Ative-as para vê-las na prévia e nas exportações.",
"noTranscript": "As legendas são lidas da transcrição da mídia. Transcreva este vídeo para ativá-las.",
"distanceFromLeft": "Distância da esquerda",
- "anchorBottom": "Base",
"transcribe": "Transcrever vídeo",
"bold": "Negrito",
- "alignRight": "Direita",
- "anchorTop": "Topo",
"minWords": "Mín. de palavras por linha",
"translateHint": "Traduzir a transcrição com o provedor de IA configurado",
- "anchorHintTop": "Legendas longas crescem para baixo — a borda superior não se move.",
"displayLanguage": "Exibição",
"removeLegacyAnnotations": "Remover anotações de legenda antigas",
"background": "Fundo",
diff --git a/src/i18n/locales/ru/settings.json b/src/i18n/locales/ru/settings.json
index 3b79b5c7e..71b212ec6 100644
--- a/src/i18n/locales/ru/settings.json
+++ b/src/i18n/locales/ru/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "В проекте ещё остались аннотации субтитров от старой функции ({{count}}). Они рисуются поверх слоя субтитров.",
"backgroundOpacity": "Непрозрачность",
"backgroundColor": "Цвет фона",
- "alignCenter": "По центру",
"translationIsNonDestructive": "Переводы хранятся рядом с расшифровкой, а не внутри неё — исходный текст и его тайминги остаются нетронутыми.",
"distanceFromRight": "Отступ справа",
"language": "Язык",
"text": "Текст",
- "anchorHintBottom": "Длинные субтитры растут вверх — нижний край остаётся на месте.",
"distanceFromTop": "Отступ сверху",
"translateFailed": "Не удалось перевести.",
- "alignLeft": "Слева",
"distanceFromBottom": "Отступ снизу",
"derivedFromTranscript": "{{count}} строк субтитров, получены из расшифровки в реальном времени.",
"translate": "Перевести",
@@ -228,14 +225,10 @@
"hiddenHint": "Субтитры берутся из расшифровки этого медиафайла. Включите их, чтобы видеть в предпросмотре и в экспорте.",
"noTranscript": "Субтитры берутся из расшифровки медиафайла. Расшифруйте это видео, чтобы включить их.",
"distanceFromLeft": "Отступ слева",
- "anchorBottom": "Снизу",
"transcribe": "Расшифровать видео",
"bold": "Полужирный",
- "alignRight": "Справа",
- "anchorTop": "Сверху",
"minWords": "Мин. слов в строке",
"translateHint": "Перевести расшифровку с помощью настроенного ИИ-провайдера",
- "anchorHintTop": "Длинные субтитры растут вниз — верхний край остаётся на месте.",
"displayLanguage": "Отображение",
"removeLegacyAnnotations": "Удалить старые аннотации субтитров",
"background": "Фон",
diff --git a/src/i18n/locales/tr/settings.json b/src/i18n/locales/tr/settings.json
index f4b1dafce..f93609c13 100644
--- a/src/i18n/locales/tr/settings.json
+++ b/src/i18n/locales/tr/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "Bu proje hâlâ eski altyazı özelliğinden kalan altyazı açıklamaları içeriyor ({{count}}). Altyazı katmanının üstünde çizilirler.",
"backgroundOpacity": "Saydamlık",
"backgroundColor": "Arka plan rengi",
- "alignCenter": "Orta",
"translationIsNonDestructive": "Çeviriler dökümün içine değil yanına kaydedilir — özgün metin ve zamanlamaları olduğu gibi kalır.",
"distanceFromRight": "Sağdan uzaklık",
"language": "Dil",
"text": "Metin",
- "anchorHintBottom": "Uzun altyazılar yukarı doğru büyür — alt kenar yerinde kalır.",
"distanceFromTop": "Üstten uzaklık",
"translateFailed": "Çeviri başarısız oldu.",
- "alignLeft": "Sol",
"distanceFromBottom": "Alttan uzaklık",
"derivedFromTranscript": "{{count}} altyazı satırı, dökümden canlı olarak türetildi.",
"translate": "Çevir",
@@ -228,14 +225,10 @@
"hiddenHint": "Altyazılar bu medyanın dökümünden gelir. Önizlemede ve dışa aktarımlarda görmek için açın.",
"noTranscript": "Altyazılar medyanın dökümünden okunur. Açmak için bu videonun dökümünü çıkarın.",
"distanceFromLeft": "Soldan uzaklık",
- "anchorBottom": "Alt",
"transcribe": "Videonun dökümünü çıkar",
"bold": "Kalın",
- "alignRight": "Sağ",
- "anchorTop": "Üst",
"minWords": "Satır başına en az kelime",
"translateHint": "Dökümü yapılandırılmış yapay zekâ sağlayıcısıyla çevir",
- "anchorHintTop": "Uzun altyazılar aşağı doğru büyür — üst kenar yerinde kalır.",
"displayLanguage": "Görüntüleme",
"removeLegacyAnnotations": "Eski altyazı açıklamalarını kaldır",
"background": "Arka plan",
diff --git a/src/i18n/locales/vi/settings.json b/src/i18n/locales/vi/settings.json
index a5805df33..8e69782c1 100644
--- a/src/i18n/locales/vi/settings.json
+++ b/src/i18n/locales/vi/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "Dự án này vẫn còn chú thích phụ đề từ tính năng phụ đề cũ ({{count}}). Chúng hiển thị đè lên lớp phụ đề.",
"backgroundOpacity": "Độ mờ",
"backgroundColor": "Màu nền",
- "alignCenter": "Giữa",
"translationIsNonDestructive": "Bản dịch được lưu bên cạnh bản chép lời, không bao giờ ghi vào trong đó — văn bản gốc và mốc thời gian giữ nguyên.",
"distanceFromRight": "Khoảng cách từ phải",
"language": "Ngôn ngữ",
"text": "Văn bản",
- "anchorHintBottom": "Phụ đề dài sẽ cao dần lên trên — cạnh dưới không đổi.",
"distanceFromTop": "Khoảng cách từ trên",
"translateFailed": "Dịch thất bại.",
- "alignLeft": "Trái",
"distanceFromBottom": "Khoảng cách từ dưới",
"derivedFromTranscript": "{{count}} dòng phụ đề, được tạo trực tiếp từ bản chép lời.",
"translate": "Dịch",
@@ -228,14 +225,10 @@
"hiddenHint": "Phụ đề đến từ bản chép lời của media này. Bật lên để thấy chúng trong bản xem trước và khi xuất.",
"noTranscript": "Phụ đề được lấy từ bản chép lời của media. Hãy chép lời video này để bật phụ đề.",
"distanceFromLeft": "Khoảng cách từ trái",
- "anchorBottom": "Dưới",
"transcribe": "Chép lời video",
"bold": "Đậm",
- "alignRight": "Phải",
- "anchorTop": "Trên",
"minWords": "Số từ tối thiểu mỗi dòng",
"translateHint": "Dịch bản chép lời bằng nhà cung cấp AI đã cấu hình",
- "anchorHintTop": "Phụ đề dài sẽ dài dần xuống dưới — cạnh trên không đổi.",
"displayLanguage": "Hiển thị",
"removeLegacyAnnotations": "Xóa chú thích phụ đề cũ",
"background": "Nền",
diff --git a/src/i18n/locales/zh-CN/settings.json b/src/i18n/locales/zh-CN/settings.json
index 6852537bd..409615b6b 100644
--- a/src/i18n/locales/zh-CN/settings.json
+++ b/src/i18n/locales/zh-CN/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "此项目仍包含旧字幕功能生成的字幕批注({{count}} 条)。它们会绘制在字幕图层之上。",
"backgroundOpacity": "不透明度",
"backgroundColor": "背景颜色",
- "alignCenter": "居中",
"translationIsNonDestructive": "翻译保存在转录旁边,绝不写入其中——原文及其时间轴保持不变。",
"distanceFromRight": "距右侧",
"language": "语言",
"text": "文本",
- "anchorHintBottom": "较长的字幕向上延伸——底边保持不动。",
"distanceFromTop": "距顶部",
"translateFailed": "翻译失败。",
- "alignLeft": "左对齐",
"distanceFromBottom": "距底部",
"derivedFromTranscript": "{{count}} 行字幕,实时由转录生成。",
"translate": "翻译",
@@ -228,14 +225,10 @@
"hiddenHint": "字幕来自此媒体的转录。开启后可在预览和导出中看到。",
"noTranscript": "字幕来自媒体的转录。请先转录此视频以启用字幕。",
"distanceFromLeft": "距左侧",
- "anchorBottom": "底部",
"transcribe": "转录视频",
"bold": "粗体",
- "alignRight": "右对齐",
- "anchorTop": "顶部",
"minWords": "每行最少词数",
"translateHint": "使用已配置的 AI 提供方翻译转录",
- "anchorHintTop": "较长的字幕向下延伸——顶边保持不动。",
"displayLanguage": "显示",
"removeLegacyAnnotations": "移除旧的字幕批注",
"background": "背景",
diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.json
index 3de673465..4a2725252 100644
--- a/src/i18n/locales/zh-TW/settings.json
+++ b/src/i18n/locales/zh-TW/settings.json
@@ -211,15 +211,12 @@
"legacyAnnotations": "此專案仍含有舊字幕功能留下的字幕註解({{count}} 個)。它們會繪製在字幕圖層之上。",
"backgroundOpacity": "不透明度",
"backgroundColor": "背景顏色",
- "alignCenter": "置中",
"translationIsNonDestructive": "翻譯會存放在逐字稿旁邊,絕不寫入其中——原文與時間軸維持不變。",
"distanceFromRight": "距右緣",
"language": "語言",
"text": "文字",
- "anchorHintBottom": "較長的字幕會向上延伸——下緣維持不動。",
"distanceFromTop": "距上緣",
"translateFailed": "翻譯失敗。",
- "alignLeft": "靠左",
"distanceFromBottom": "距下緣",
"derivedFromTranscript": "{{count}} 行字幕,即時由逐字稿產生。",
"translate": "翻譯",
@@ -228,14 +225,10 @@
"hiddenHint": "字幕來自這個媒體的逐字稿。開啟後即可在預覽與匯出中看到。",
"noTranscript": "字幕取自媒體的逐字稿。請先為這部影片產生逐字稿以啟用字幕。",
"distanceFromLeft": "距左緣",
- "anchorBottom": "下",
"transcribe": "為影片產生逐字稿",
"bold": "粗體",
- "alignRight": "靠右",
- "anchorTop": "上",
"minWords": "每行最少字數",
"translateHint": "使用已設定的 AI 供應商翻譯逐字稿",
- "anchorHintTop": "較長的字幕會向下延伸——上緣維持不動。",
"displayLanguage": "顯示",
"removeLegacyAnnotations": "移除舊的字幕註解",
"background": "背景",