The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
feat: panels and dialogs speak the catalog
Jareer43f843b14d15
diff --git a/desktop/src/components/AdjustPanel.tsx b/desktop/src/components/AdjustPanel.tsxindex 1de2e7e8..104538c5 100644--- a/desktop/src/components/AdjustPanel.tsx+++ b/desktop/src/components/AdjustPanel.tsx@@ -1,4 +1,5 @@import { MAX_SCALE, MIN_SCALE, type Clip } from "../lib/editor";+import { t, useLocale } from "../lib/i18n";import { Group, Slider, Toggle } from "./controls";import { Icon } from "./Icon";import { Empty } from "./Panel";@@ -29,7 +30,7 @@ function fromDecibels(decibels: number): number {}function formatDecibels(decibels: number): string {- if (decibels <= MIN_DB) return "silent";+ if (decibels <= MIN_DB) return t("adjust.silent");if (Math.abs(decibels) < 0.05) return "0.0 dB";return `${decibels > 0 ? "+" : ""}${decibels.toFixed(1)} dB`;}@@ -59,10 +60,12 @@ export function AdjustPanel({/** Separate, because changing speed also rescales the clip's duration. */onSpeedChange: (speed: number) => void;}) {+ const { t } = useLocale();+if (!clip) {return (<Empty icon={<Icon name="settings" size={26} strokeWidth={1.5} />}>- Select a single clip to adjust it.+ {t("adjust.empty")}</Empty>);}@@ -75,12 +78,9 @@ export function AdjustPanel({return (<div className="px-3 py-3">{hasPicture && (- <Group- title="Transform"- help="You can also drag the picture in the preview - corners scale, the handle above rotates. Double-click any label to reset it, or click a value to type one."- >+ <Group title={t("adjust.transform")} help={t("adjust.transformHelp")}><Slider- label="Scale"+ label={t("adjust.scale")}value={clip.scale}min={MIN_SCALE}max={MAX_SCALE}@@ -91,7 +91,7 @@ export function AdjustPanel({onCommit={onCommit}/><Slider- label="Position X"+ label={t("adjust.positionX")}value={clip.offsetX}min={-1}max={1}@@ -102,7 +102,7 @@ export function AdjustPanel({onCommit={onCommit}/><Slider- label="Position Y"+ label={t("adjust.positionY")}value={clip.offsetY}min={-1}max={1}@@ -113,7 +113,7 @@ export function AdjustPanel({onCommit={onCommit}/><Slider- label="Rotation"+ label={t("adjust.rotation")}value={clip.rotation}min={-180}max={180}@@ -124,7 +124,7 @@ export function AdjustPanel({onCommit={onCommit}/><Slider- label="Opacity"+ label={t("adjust.opacity")}value={clip.opacity}min={0}max={1}@@ -138,9 +138,9 @@ export function AdjustPanel({)}{hasSound && (- <Group title="Volume">+ <Group title={t("adjust.volume")}><Slider- label="Level"+ label={t("adjust.level")}value={toDecibels(clip.volume)}min={MIN_DB}max={MAX_DB}@@ -154,15 +154,12 @@ export function AdjustPanel({)}{clip.kind !== "image" && (- <Group- title="Speed"- help="The clip covers the same material either way, so its length on the timeline changes to match."- >+ <Group title={t("adjust.speed")} help={t("adjust.speedHelp")}>{/* The engine's full range. The track is linear so the useful0.25-4x band sits left of centre; the number field beside it ishow the extremes are actually dialled in. */}<Slider- label="Rate"+ label={t("adjust.rate")}value={clip.speed}min={0.0625}max={16}@@ -173,8 +170,8 @@ export function AdjustPanel({onCommit={onCommit}/><Toggle- label="Change pitch with speed"- hint="Off keeps the voice where it is. On is tape behaviour - faster also means higher."+ label={t("adjust.pitchToggle")}+ hint={t("adjust.pitchHint")}checked={!clip.preservePitch}onChange={(checked) => { onChange({ preservePitch: !checked }); onCommit(); }}/>@@ -182,25 +179,25 @@ export function AdjustPanel({)}{hasSound && (- <Group title="Fades">+ <Group title={t("adjust.fades")}><Slider- label="Fade in"+ label={t("adjust.fadeIn")}value={Math.min(clip.fadeIn, fadeLimit)}min={0}max={fadeLimit}step={0.05}- format={(value) => (value === 0 ? "none" : `${value.toFixed(2)}s`)}+ format={(value) => (value === 0 ? t("adjust.none") : `${value.toFixed(2)}s`)}onReset={() => { onChange({ fadeIn: 0 }); onCommit(); }}onChange={(fadeIn) => onChange({ fadeIn })}onCommit={onCommit}/><Slider- label="Fade out"+ label={t("adjust.fadeOut")}value={Math.min(clip.fadeOut, fadeLimit)}min={0}max={fadeLimit}step={0.05}- format={(value) => (value === 0 ? "none" : `${value.toFixed(2)}s`)}+ format={(value) => (value === 0 ? t("adjust.none") : `${value.toFixed(2)}s`)}onReset={() => { onChange({ fadeOut: 0 }); onCommit(); }}onChange={(fadeOut) => onChange({ fadeOut })}onCommit={onCommit}diff --git a/desktop/src/components/EffectsPanel.tsx b/desktop/src/components/EffectsPanel.tsxindex 89601399..4d1276b3 100644--- a/desktop/src/components/EffectsPanel.tsx+++ b/desktop/src/components/EffectsPanel.tsx@@ -7,6 +7,7 @@ import {type ClipTransition,} from "../lib/effects";import type { Clip } from "../lib/editor";+import { useLocale } from "../lib/i18n";import { HelpTip, Slider } from "./controls";import { Icon, IconButton } from "./Icon";import { Empty } from "./Panel";@@ -35,10 +36,12 @@ export function EffectsPanel({/** Ends the gesture: the accumulated change becomes one engine command. */onCommit: () => void;}) {+ const { t } = useLocale();+if (!clip || (clip.kind !== "video" && clip.kind !== "image")) {return (<Empty icon={<Icon name="sparkles" size={26} strokeWidth={1.5} />}>- Select a video or image clip to add effects.+ {t("effects.panel.empty")}</Empty>);}@@ -75,8 +78,8 @@ export function EffectsPanel({{transition && transitionDefinition && (<section className="mb-5"><h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- Transition- <HelpTip text="The transition on the cut into this clip. It needs the clip before it to stay touching - moved apart, it renders as a plain cut." />+ {t("effects.panel.transition")}+ <HelpTip text={t("effects.panel.transitionHelp")} /></h3><div className="rounded-lg bg-sunken p-2.5"><div className="mb-2 flex items-center gap-1">@@ -85,7 +88,7 @@ export function EffectsPanel({</span><IconButtonicon="close"- label={`Remove ${transitionDefinition.label}`}+ label={t("effects.panel.remove", { name: transitionDefinition.label })}size={7}tone="danger"onClick={() => {@@ -96,12 +99,11 @@ export function EffectsPanel({</div>{!hasPreceding && (<p className="mb-2 text-[11px] leading-snug text-danger">- No clip ends where this one starts, so this transition currently renders as a- plain cut.+ {t("effects.panel.noPreceding")}</p>)}<Slider- label="Duration"+ label={t("effects.panel.duration")}value={transition.duration}min={0.2}max={3}@@ -121,8 +123,8 @@ export function EffectsPanel({{applied.length > 0 && (<section className="mb-5"><h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- Applied- <HelpTip text="Effects run top to bottom. The eye bypasses one without losing its settings - flick it to compare." />+ {t("effects.panel.applied")}+ <HelpTip text={t("effects.panel.appliedHelp")} /></h3><ul className="flex flex-col gap-2">@@ -144,27 +146,31 @@ export function EffectsPanel({</span><IconButtonicon={active ? "eye" : "eyeOff"}- label={active ? `Bypass ${definition.label}` : `Enable ${definition.label}`}+ label={+ active+ ? t("effects.panel.bypass", { name: definition.label })+ : t("effects.panel.enable", { name: definition.label })+ }size={7}onClick={() => patch(index, { enabled: !active })}/><IconButtonicon="chevronUp"- label="Move earlier in the chain"+ label={t("effects.panel.moveEarlier")}size={7}disabled={index === 0}onClick={() => move(index, -1)}/><IconButtonicon="chevronDown"- label="Move later in the chain"+ label={t("effects.panel.moveLater")}size={7}disabled={index === applied.length - 1}onClick={() => move(index, 1)}/><IconButtonicon="close"- label={`Remove ${definition.label}`}+ label={t("effects.panel.remove", { name: definition.label })}size={7}tone="danger"onClick={() => remove(index)}@@ -192,7 +198,7 @@ export function EffectsPanel({/>))}{definition.params.length === 0 && (- <p className="text-[11px] text-tertiary">Nothing to adjust.</p>+ <p className="text-[11px] text-tertiary">{t("effects.panel.nothingToAdjust")}</p>)}</div></li>@@ -203,7 +209,7 @@ export function EffectsPanel({)}<h3 className="mb-2 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- Add an effect+ {t("effects.panel.addEffect")}</h3><ul className="flex flex-col gap-0.5">{EFFECTS.map((effect) => (diff --git a/desktop/src/components/ErrorNotice.tsx b/desktop/src/components/ErrorNotice.tsxindex 5c9587eb..582dae1f 100644--- a/desktop/src/components/ErrorNotice.tsx+++ b/desktop/src/components/ErrorNotice.tsx@@ -1,5 +1,6 @@import { useEffect, useRef, useState } from "react";+import { useLocale } from "../lib/i18n";import { Icon } from "./Icon";/**@@ -21,6 +22,7 @@ export function ErrorNotice({className?: string;}) {const [copied, setCopied] = useState(false);+ const { t } = useLocale();const timer = useRef<number | undefined>(undefined);useEffect(() => () => window.clearTimeout(timer.current), []);@@ -50,8 +52,8 @@ export function ErrorNotice({</p><buttontype="button"- title={copied ? "Copied" : "Copy error"}- aria-label="Copy error"+ title={copied ? t("errorNotice.copied") : t("errorNotice.copy")}+ aria-label={t("errorNotice.copy")}onClick={() => void copy()}className="shrink-0 cursor-pointer text-danger opacity-70 hover:opacity-100">@@ -60,7 +62,7 @@ export function ErrorNotice({{onDismiss && (<buttontype="button"- aria-label="Dismiss"+ aria-label={t("errorNotice.dismiss")}onClick={onDismiss}className="shrink-0 cursor-pointer text-danger opacity-70 hover:opacity-100">diff --git a/desktop/src/components/ExportDialog.tsx b/desktop/src/components/ExportDialog.tsxindex ad52722e..db57c1ba 100644--- a/desktop/src/components/ExportDialog.tsx+++ b/desktop/src/components/ExportDialog.tsx@@ -6,17 +6,28 @@ import { revealItemInDir } from "@tauri-apps/plugin-opener";import type { ExportClip, ExportProgress } from "../lib/engine";import type { ExportTitle } from "../lib/monitor";import { cancelExport, exportProject, onExportProgress, writeCacheFile } from "../lib/engine";+import { useLocale, type MsgKey } from "../lib/i18n";import { rasterizeTitle } from "../lib/rasterize";import { shortDuration } from "../lib/time";import { ErrorNotice } from "./ErrorNotice";import { Icon } from "./Icon";/** Quality presets, in the terms a person picking one actually thinks in. */-const QUALITIES = [- { label: "High", crf: 18, preset: "slow", hint: "large" },- { label: "Balanced", crf: 22, preset: "medium", hint: "default" },- { label: "Small", crf: 27, preset: "fast", hint: "compact" },-] as const;+const QUALITIES: {+ labelKey: MsgKey;+ crf: number;+ preset: string;+ hintKey: MsgKey;+}[] = [+ { labelKey: "export.quality.high", crf: 18, preset: "slow", hintKey: "export.quality.highHint" },+ {+ labelKey: "export.quality.balanced",+ crf: 22,+ preset: "medium",+ hintKey: "export.quality.balancedHint",+ },+ { labelKey: "export.quality.small", crf: 27, preset: "fast", hintKey: "export.quality.smallHint" },+];/*** A title bound for the file. The engine composites pixels, not fonts, so the@@ -105,6 +116,7 @@ export function ExportDialog({const [output, setOutput] = useState(`${projectPath}/${projectName}.mp4`);const [quality, setQuality] = useState<(typeof QUALITIES)[number]>(QUALITIES[1]);const [phase, setPhase] = useState<Phase>({ kind: "idle" });+ const { t, tp } = useLocale();const unlisten = useRef<(() => void) | null>(null);// When the engine started counting frames, for the time-left estimate.const startedAt = useRef<number | null>(null);@@ -118,9 +130,9 @@ export function ExportDialog({const browse = async () => {const chosen = await save({- title: "Export to",+ title: t("export.saveTitle"),defaultPath: output,- filters: [{ name: "MP4 video", extensions: ["mp4"] }],+ filters: [{ name: t("export.mp4Filter"), extensions: ["mp4"] }],});if (chosen) setOutput(chosen);};@@ -138,7 +150,7 @@ export function ExportDialog({for (const [index, title] of titles.entries()) {setPhase({kind: "running",- progress: { frame: index, total: titles.length, stage: "drawing titles" },+ progress: { frame: index, total: titles.length, stage: t("export.stageTitles") },});const bytes = await rasterizeTitle(title.style, title.offsetX, title.offsetY, width, height);const key = `title-${index}-${title.clipId.replace(/[^A-Za-z0-9_-]/g, "")}.png`;@@ -188,7 +200,9 @@ export function ExportDialog({const { frame, total } = phase.progress;const elapsed = (performance.now() - startedAt.current) / 1000;if (frame > rateNum / rateDen && total > frame && elapsed > 1) {- remaining = `about ${shortDuration((elapsed / frame) * (total - frame))} left`;+ remaining = t("export.timeLeft", {+ duration: shortDuration((elapsed / frame) * (total - frame)),+ });}}@@ -205,11 +219,11 @@ export function ExportDialog({<div className="surface w-full max-w-md rounded-2xl p-6"><div className="mb-5 flex items-center gap-2"><Icon name="export" size={17} className="text-accent" />- <h2 className="flex-1 text-sm font-semibold text-primary">Export</h2>+ <h2 className="flex-1 text-sm font-semibold text-primary">{t("common.export")}</h2>{!running && (<buttontype="button"- aria-label="Close"+ aria-label={t("common.close")}onClick={onClose}className="cursor-pointer rounded p-1 text-secondary hover:bg-hover hover:text-primary">@@ -219,20 +233,23 @@ export function ExportDialog({</div><dl className="mb-5 space-y-1 rounded-lg bg-sunken px-3 py-2.5">- <Row label="Format" value={`${width} x ${height} · ${(rateNum / rateDen).toFixed(2)} fps`} />- <Row label="Duration" value={shortDuration(duration)} /><Row- label="Contents"+ label={t("export.format")}+ value={`${width} x ${height} · ${(rateNum / rateDen).toFixed(2)} fps`}+ />+ <Row label={t("export.duration")} value={shortDuration(duration)} />+ <Row+ label={t("export.contents")}value={- `${clipCount} clip${clipCount === 1 ? "" : "s"}` +- (titles.length > 0 ? ` · ${titles.length} title${titles.length === 1 ? "" : "s"}` : "")+ tp("export.clips", clipCount) ++ (titles.length > 0 ? ` · ${tp("export.titles", titles.length)}` : "")}/></dl>{phase.kind === "idle" || phase.kind === "failed" ? (<>- <Label>Save to</Label>+ <Label>{t("export.saveTo")}</Label><div className="mb-5 flex gap-1.5"><inputvalue={output}@@ -248,27 +265,27 @@ export function ExportDialog({text-xs text-primary transition-colors hover:bg-active"><Icon name="folder" size={13} />- Browse+ {t("export.browse")}</button></div>- <Label>Quality</Label>+ <Label>{t("export.qualityTitle")}</Label><div className="mb-5 grid grid-cols-3 gap-1.5">{QUALITIES.map((option) => (<button- key={option.label}+ key={option.labelKey}type="button"- aria-pressed={option.label === quality.label}+ aria-pressed={option.crf === quality.crf}onClick={() => setQuality(option)}className={`flex cursor-pointer flex-col items-center gap-0.5 rounded-lg px-2 py-2transition-colors ${- option.label === quality.label+ option.crf === quality.crf? "bg-accent text-on-accent": "bg-hover text-secondary hover:bg-active"}`}>- <span className="text-xs">{option.label}</span>- <span className="text-[10px] opacity-60">{option.hint}</span>+ <span className="text-xs">{t(option.labelKey)}</span>+ <span className="text-[10px] opacity-60">{t(option.hintKey)}</span></button>))}</div>@@ -286,14 +303,18 @@ export function ExportDialog({hover:bg-accent-hover disabled:cursor-not-allowed disabled:opacity-40"><Icon name="export" size={15} />- {empty ? "Nothing to export" : phase.kind === "failed" ? "Try again" : "Export"}+ {empty+ ? t("export.nothing")+ : phase.kind === "failed"+ ? t("export.tryAgain")+ : t("common.export")}</button></>) : phase.kind === "running" ? (<div className="py-2"><div className="mb-2 flex items-baseline justify-between gap-3"><span className="min-w-0 truncate text-xs text-primary">- {phase.progress?.stage ?? "starting"}+ {phase.progress?.stage ?? t("export.starting")}</span><span className="shrink-0 font-technical text-sm tabular-nums text-primary">{percent === null ? "" : `${percent}%`}@@ -308,7 +329,10 @@ export function ExportDialog({<div className="mt-2 flex items-baseline justify-between gap-3">{phase.progress && phase.progress.total > 0 ? (<p className="font-technical text-[10px] text-tertiary">- frame {phase.progress.frame} of {phase.progress.total}+ {t("export.frameOf", {+ frame: phase.progress.frame,+ total: phase.progress.total,+ })}</p>) : (<span />@@ -323,14 +347,14 @@ export function ExportDialog({className="mt-4 w-full cursor-pointer rounded-lg bg-hover px-4 py-2 text-xstext-secondary transition-colors hover:bg-active hover:text-primary">- Cancel+ {t("common.cancel")}</button></div>) : (<div className="py-1"><p className="mb-1 flex items-center gap-2 text-sm text-success"><Icon name="check" size={14} />- Export finished+ {t("export.finished")}</p><p className="mb-5 wrap-break-word font-technical text-[10px] text-secondary">{phase.path}</p><div className="flex gap-1.5">@@ -341,7 +365,7 @@ export function ExportDialog({bg-hover px-4 py-2.5 text-sm text-primary transition-colors hover:bg-active"><Icon name="folder" size={13} />- Show in Finder+ {t("export.reveal")}</button><buttontype="button"@@ -349,7 +373,7 @@ export function ExportDialog({className="flex-1 cursor-pointer rounded-lg bg-accent px-4 py-2.5 text-sm font-mediumtext-on-accent transition-colors hover:bg-accent-hover">- Done+ {t("export.done")}</button></div></div>diff --git a/desktop/src/components/FiltersPanel.tsx b/desktop/src/components/FiltersPanel.tsxindex 79b4d0e5..25949095 100644--- a/desktop/src/components/FiltersPanel.tsx+++ b/desktop/src/components/FiltersPanel.tsx@@ -10,6 +10,7 @@ import {type FilterDefinition,} from "../lib/filters";import type { Clip } from "../lib/editor";+import { useLocale } from "../lib/i18n";import { HelpTip, Slider } from "./controls";import { Icon, IconButton } from "./Icon";import { Empty } from "./Panel";@@ -38,11 +39,12 @@ export function FiltersPanel({}) {const [category, setCategory] = useState<FilterCategory>("voice");const [query, setQuery] = useState("");+ const { t } = useLocale();if (!clip) {return (<Empty icon={<Icon name="settings" size={26} strokeWidth={1.5} />}>- Select a single clip to add filters.+ {t("filters.panel.empty")}</Empty>);}@@ -50,7 +52,7 @@ export function FiltersPanel({if (clip.kind === "image") {return (<Empty icon={<Icon name="image" size={26} strokeWidth={1.5} />}>- A still has no audio to filter.+ {t("filters.panel.emptyImage")}</Empty>);}@@ -94,8 +96,8 @@ export function FiltersPanel({{applied.length > 0 && (<section className="mb-5"><h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- Applied- <HelpTip text="Filters run top to bottom, and order is audible. The eye bypasses one without losing its settings - flick it to compare." />+ {t("filters.panel.applied")}+ <HelpTip text={t("filters.panel.appliedHelp")} /></h3><ul className="flex flex-col gap-2">@@ -117,27 +119,31 @@ export function FiltersPanel({</span><IconButtonicon={active ? "eye" : "eyeOff"}- label={active ? `Bypass ${definition.label}` : `Enable ${definition.label}`}+ label={+ active+ ? t("filters.panel.bypass", { name: definition.label })+ : t("filters.panel.enable", { name: definition.label })+ }size={7}onClick={() => patch(index, { enabled: !active })}/><IconButtonicon="chevronUp"- label="Move earlier in the chain"+ label={t("filters.panel.moveEarlier")}size={7}disabled={index === 0}onClick={() => move(index, -1)}/><IconButtonicon="chevronDown"- label="Move later in the chain"+ label={t("filters.panel.moveLater")}size={7}disabled={index === applied.length - 1}onClick={() => move(index, 1)}/><IconButtonicon="close"- label={`Remove ${definition.label}`}+ label={t("filters.panel.remove", { name: definition.label })}size={7}tone="danger"onClick={() => remove(index)}@@ -177,14 +183,14 @@ export function FiltersPanel({<inputvalue={query}onChange={(event) => setQuery(event.target.value)}- placeholder="Search filters"+ placeholder={t("filters.panel.searchPlaceholder")}className="h-7 w-full bg-transparent text-xs text-primary outline-noneplaceholder:text-tertiary"/>{query !== "" && (<buttontype="button"- aria-label="Clear search"+ aria-label={t("filters.panel.clearSearch")}onClick={() => setQuery("")}className="cursor-pointer text-tertiary transition-colors hover:text-primary">@@ -215,7 +221,7 @@ export function FiltersPanel({{browsable.length === 0 ? (<p className="px-2 py-3 text-center text-[11px] text-tertiary">- Nothing matches "{query.trim()}".+ {t("filters.panel.noMatches", { query: query.trim() })}</p>) : (<ul className="flex flex-col gap-0.5">diff --git a/desktop/src/components/Inspector.tsx b/desktop/src/components/Inspector.tsxindex d77f7902..366df473 100644--- a/desktop/src/components/Inspector.tsx+++ b/desktop/src/components/Inspector.tsx@@ -1,6 +1,7 @@import type { ReactNode } from "react";import { activeTimeline, type Clip, type EditorProject, type MediaItem } from "../lib/editor";+import { useLocale } from "../lib/i18n";import { shortDuration, timecode } from "../lib/time";/**@@ -34,22 +35,32 @@ export function Inspector({/** Opens the project-details editor (name, output frame). */onModify: () => void;}) {+ const { t } = useLocale();+return (<div className="flex min-h-full flex-col">{!clip && !media ? (<><div className="selectable flex-1 px-3 py-2">- <Section title="Project">- <Row label="Name" value={projectName} />- <Row label="Folder" value={projectPath} mono wrap />- <Row label="Output" value={`${frame.width} x ${frame.height}`} mono />- <Row label="Rate" value={`${frameRate.toFixed(2)} fps`} mono />- <Row label="Duration" value={timecode(duration, frameRate)} mono />+ <Section title={t("inspector.project")}>+ <Row label={t("inspector.name")} value={projectName} />+ <Row label={t("inspector.folder")} value={projectPath} mono wrap />+ <Row label={t("inspector.output")} value={`${frame.width} x ${frame.height}`} mono />+ <Row label={t("inspector.rate")} value={`${frameRate.toFixed(2)} fps`} mono />+ <Row label={t("inspector.duration")} value={timecode(duration, frameRate)} mono /></Section>- <Section title="Contents">- <Row label="Media" value={`${project.media.length}`} mono />- <Row label="Tracks" value={`${activeTimeline(project).tracks.length}`} mono />- <Row label="Clips" value={`${activeTimeline(project).clips.length}`} mono />+ <Section title={t("inspector.contents")}>+ <Row label={t("inspector.media")} value={`${project.media.length}`} mono />+ <Row+ label={t("inspector.tracks")}+ value={`${activeTimeline(project).tracks.length}`}+ mono+ />+ <Row+ label={t("inspector.clips")}+ value={`${activeTimeline(project).clips.length}`}+ mono+ /></Section></div><div className="flex justify-end border-t border-hairline px-3 py-2">@@ -59,47 +70,67 @@ export function Inspector({className="cursor-pointer rounded-lg bg-hover px-3.5 py-1.5 text-xs font-mediumtext-primary transition-colors hover:bg-active">- Modify+ {t("inspector.modify")}</button></div></>) : (<div className="selectable px-3 py-2">{clip && (- <Section title="Clip">- <Row label="Name" value={clip.name} />- <Row label="Track" value={clip.trackId} mono />- <Row label="Start" value={timecode(clip.start, frameRate)} mono />- <Row label="Duration" value={timecode(clip.duration, frameRate)} mono />- <Row label="End" value={timecode(clip.start + clip.duration, frameRate)} mono />- <Row label="In point" value={timecode(clip.sourceStart, frameRate)} mono />+ <Section title={t("inspector.clip")}>+ <Row label={t("inspector.name")} value={clip.name} />+ <Row label={t("inspector.track")} value={clip.trackId} mono />+ <Row label={t("inspector.start")} value={timecode(clip.start, frameRate)} mono />+ <Row label={t("inspector.duration")} value={timecode(clip.duration, frameRate)} mono />+ <Row+ label={t("inspector.end")}+ value={timecode(clip.start + clip.duration, frameRate)}+ mono+ />+ <Row+ label={t("inspector.inPoint")}+ value={timecode(clip.sourceStart, frameRate)}+ mono+ /></Section>)}{media && (<>- <Section title="Source">- <Row label="Name" value={media.name} />- <Row label="Path" value={media.path} mono wrap />- <Row label="Duration" value={shortDuration(media.duration)} mono />+ <Section title={t("inspector.source")}>+ <Row label={t("inspector.name")} value={media.name} />+ <Row label={t("inspector.path")} value={media.path} mono wrap />+ <Row label={t("inspector.duration")} value={shortDuration(media.duration)} mono /></Section>{media.width !== null && (- <Section title="Video">- <Row label="Codec" value={media.videoCodec ?? "unknown"} />- <Row label="Size" value={`${media.width} x ${media.height}`} mono />+ <Section title={t("inspector.video")}>+ <Row+ label={t("inspector.codec")}+ value={media.videoCodec ?? t("inspector.unknown")}+ />+ <Row label={t("inspector.size")} value={`${media.width} x ${media.height}`} mono />+ <Row+ label={t("inspector.rate")}+ value={+ media.frameRate ? `${media.frameRate.toFixed(3)} fps` : t("inspector.unknown")+ }+ mono+ /><Row- label="Rate"- value={media.frameRate ? `${media.frameRate.toFixed(3)} fps` : "unknown"}+ label={t("inspector.exact")}+ value={media.frameRateFraction ?? t("inspector.unknown")}mono/>- <Row label="Exact" value={media.frameRateFraction ?? "unknown"} mono /></Section>)}{media.hasAudio && (- <Section title="Audio">- <Row label="Codec" value={media.audioCodec ?? "unknown"} />+ <Section title={t("inspector.audio")}>+ <Row+ label={t("inspector.codec")}+ value={media.audioCodec ?? t("inspector.unknown")}+ /></Section>)}</>diff --git a/desktop/src/components/MediaBin.tsx b/desktop/src/components/MediaBin.tsxindex f29ca041..1113ec31 100644--- a/desktop/src/components/MediaBin.tsx+++ b/desktop/src/components/MediaBin.tsx@@ -13,6 +13,7 @@ import {type TransitionCategory,} from "../lib/effects";import type { MediaItem } from "../lib/editor";+import { t, useLocale, type MsgKey } from "../lib/i18n";import { templateDelete, templateList, type TemplateInfo } from "../lib/engine";import { themeColor } from "../lib/theme";import { shortDuration } from "../lib/time";@@ -33,12 +34,12 @@ export const ALL_MEDIA: BinFilter = { video: true, audio: true, image: true };/** The pages of the library strip, in display order. */type LibraryTab = "media" | "text" | "transitions" | "effects" | "templates";-const TABS: { id: LibraryTab; label: string }[] = [- { id: "media", label: "Media" },- { id: "text", label: "Text" },- { id: "transitions", label: "Transitions" },- { id: "effects", label: "Effects" },- { id: "templates", label: "Templates" },+const TABS: { id: LibraryTab; labelKey: MsgKey }[] = [+ { id: "media", labelKey: "mediaBin.tabMedia" },+ { id: "text", labelKey: "mediaBin.tabText" },+ { id: "transitions", labelKey: "mediaBin.tabTransitions" },+ { id: "effects", labelKey: "mediaBin.tabEffects" },+ { id: "templates", labelKey: "mediaBin.tabTemplates" },];/**@@ -124,6 +125,7 @@ export const MediaBin = memo(function MediaBin({const [tab, setTab] = useState<LibraryTab>("media");const [effectCategory, setEffectCategory] = useState<EffectCategory>("basic");const [transitionCategory, setTransitionCategory] = useState<TransitionCategory>("basic");+ const { t } = useLocale();return (<Panel@@ -152,7 +154,7 @@ export const MediaBin = memo(function MediaBin({: "text-secondary hover:text-primary"}`}>- {entry.label}+ {t(entry.labelKey)}</button>))}</div>@@ -163,12 +165,12 @@ export const MediaBin = memo(function MediaBin({<aside className="thin-scroll w-26 shrink-0 overflow-y-auto border-r border-hairline py-1">{tab === "media" && <MediaCategories items={items} filter={filter} onFilter={onFilter} />}{tab === "text" && (- <CategoryGroup title="Text">- <CategoryRow label="Titles" selected onSelect={() => {}} />+ <CategoryGroup title={t("mediaBin.tabText")}>+ <CategoryRow label={t("mediaBin.titles")} selected onSelect={() => {}} /></CategoryGroup>)}{tab === "transitions" && (- <CategoryGroup title="Transitions">+ <CategoryGroup title={t("mediaBin.tabTransitions")}>{TRANSITION_CATEGORIES.map((category) => (<CategoryRowkey={category.id}@@ -180,7 +182,7 @@ export const MediaBin = memo(function MediaBin({</CategoryGroup>)}{tab === "effects" && (- <CategoryGroup title="Video Effects">+ <CategoryGroup title={t("mediaBin.videoEffects")}>{EFFECT_CATEGORIES.map((category) => (<CategoryRowkey={category.id}@@ -192,8 +194,8 @@ export const MediaBin = memo(function MediaBin({</CategoryGroup>)}{tab === "templates" && (- <CategoryGroup title="Templates">- <CategoryRow label="My templates" selected onSelect={() => {}} />+ <CategoryGroup title={t("mediaBin.tabTemplates")}>+ <CategoryRow label={t("mediaBin.myTemplates")} selected onSelect={() => {}} /></CategoryGroup>)}</aside>@@ -293,7 +295,11 @@ function onlyKind(kind: keyof BinFilter): BinFilter {return { video: false, audio: false, image: false, [kind]: true };}-const KIND_LABELS = { video: "Video", audio: "Audio", image: "Images" } as const;+const KIND_LABEL_KEYS: Record<keyof BinFilter, MsgKey> = {+ video: "mediaBin.kindVideo",+ audio: "mediaBin.kindAudio",+ image: "mediaBin.kindImages",+};function MediaCategories({items,@@ -310,10 +316,12 @@ function MediaCategories({// row for that state, so nothing highlights until a category is clicked.const selected = enabled.length === 3 ? "all" : enabled.length === 1 ? enabled[0] : null;+ const { t } = useLocale();+return (- <CategoryGroup title="Media">+ <CategoryGroup title={t("mediaBin.tabMedia")}><CategoryRow- label="All media"+ label={t("mediaBin.allMedia")}count={items.length}selected={selected === "all"}onSelect={() => onFilter(ALL_MEDIA)}@@ -321,7 +329,7 @@ function MediaCategories({{kinds.map((kind) => (<CategoryRowkey={kind}- label={KIND_LABELS[kind]}+ label={t(KIND_LABEL_KEYS[kind])}count={items.filter((item) => item.kind === kind).length}selected={selected === kind}onSelect={() => onFilter(onlyKind(kind))}@@ -370,21 +378,23 @@ function MediaPage({onAddToTimeline: (mediaId: string) => void;onToggleSlot: (mediaId: string, placeholder: boolean) => void;}) {+ const { t } = useLocale();+const browse = async () => {if (busy) return;const chosen = await open({multiple: true,- title: "Import media",+ title: t("mediaBin.importMedia"),filters: [{- name: "Media",+ name: t("mediaBin.mediaFilter"),extensions: ["mp4", "mov", "mkv", "webm", "avi", "m4v","mp3", "wav", "flac", "aac", "m4a", "ogg", "opus","png", "jpg", "jpeg", "webp", "bmp", "tif", "tiff", "avif", "gif",],},- { name: "All files", extensions: ["*"] },+ { name: t("mediaBin.allFilesFilter"), extensions: ["*"] },],});@@ -492,7 +502,7 @@ function MediaPage({disabled:cursor-not-allowed disabled:opacity-40"><Icon name="import" size={14} />- {busy ? "Importing..." : "Import media"}+ {busy ? t("mediaBin.importing") : t("mediaBin.importMedia")}</button></div>@@ -500,7 +510,7 @@ function MediaPage({<div className="mx-2 mb-2 flex items-center justify-between rounded-lg bg-sunkenpx-2.5 py-1.5"><span className="text-[11px] text-secondary">- {selectedIds.length} selected - drag any of them to place all+ {t("mediaBin.selectedCount", { count: selectedIds.length })}</span><buttontype="button"@@ -508,7 +518,7 @@ function MediaPage({className="cursor-pointer rounded px-2 py-0.5 text-[11px] font-medium text-dangertransition-colors hover:bg-danger-soft">- Delete+ {t("mediaBin.delete")}</button></div>)}@@ -526,9 +536,7 @@ function MediaPage({/>}>- {dropping- ? "Release to import"- : "Drop video and audio files anywhere in the window, or paste a path above."}+ {dropping ? t("mediaBin.releaseToImport") : t("mediaBin.dropHint")}</Empty>) : (<ul className={CARD_GRID}>@@ -550,9 +558,7 @@ function MediaPage({onDoubleClick={() => onAddToTimeline(item.id)}// The details that used to sit on a second line live here now.// They are worth having, but not worth a permanent row each.- title={`${item.name}-${describe(item)}-Drag onto a track, or double-click to add at the playhead`}+ title={`${item.name}\n${describe(item)}\n${t("mediaBin.cardHint")}`}className="group cursor-grab select-none active:cursor-grabbing"><div@@ -578,7 +584,7 @@ Drag onto a track, or double-click to add at the playhead`}<span className="pointer-events-none absolute bottom-1 right-1 rounded bg-black/55px-1 py-px font-technical text-[10px] text-white">- {item.kind === "image" ? "still" : shortDuration(item.duration)}+ {item.kind === "image" ? t("mediaBin.still") : shortDuration(item.duration)}</span>{/* The slot state stays visible; only the controls are hover-only.@@ -588,7 +594,7 @@ Drag onto a track, or double-click to add at the playhead`}gap-1 rounded bg-accent px-1 py-px font-technical text-[10px]text-on-accent"><Icon name="slot" size={9} />- Slot+ {t("mediaBin.slotBadge")}</span>)}@@ -597,13 +603,11 @@ Drag onto a track, or double-click to add at the playhead`}aria-pressed={item.placeholder ?? false}aria-label={item.placeholder- ? `Unmark ${item.name} as a template slot`- : `Mark ${item.name} as a template slot`+ ? t("mediaBin.unmarkSlot", { name: item.name })+ : t("mediaBin.markSlot", { name: item.name })}title={- item.placeholder- ? "No longer a template slot"- : "Make this a template slot: saved templates ask for the user's own media here"+ item.placeholder ? t("mediaBin.unmarkSlotHint") : t("mediaBin.markSlotHint")}onClick={(event) => {event.stopPropagation();@@ -621,8 +625,8 @@ Drag onto a track, or double-click to add at the playhead`}<buttontype="button"- aria-label={`Remove ${item.name}`}- title="Remove from bin"+ aria-label={t("mediaBin.removeItem", { name: item.name })}+ title={t("mediaBin.removeFromBin")}onClick={(event) => {event.stopPropagation();onRemove(item.id);@@ -662,20 +666,23 @@ Drag onto a track, or double-click to add at the playhead`}/** The second line that used to be shown for every item, now on hover. */function describe(item: MediaItem): string {- if (item.kind === "audio") return item.audioCodec ?? "audio";+ if (item.kind === "audio") return item.audioCodec ?? t("mediaBin.audioFallback");const size = `${item.width}x${item.height}`;- return item.kind === "image" ? `${size} still` : `${size} · ${item.frameRate?.toFixed(2)} fps`;+ return item.kind === "image"+ ? t("mediaBin.sizeStill", { size })+ : `${size} · ${item.frameRate?.toFixed(2)} fps`;}// ── the text page ────────────────────────────────────────────────────────────function TextPage({ onAddText }: { onAddText: () => void }) {+ const { t } = useLocale();return (<ul className={`${CARD_GRID} pt-2`}><lionClick={onAddText}onDoubleClick={onAddText}- title="Adds a title at the playhead"+ title={t("mediaBin.addTitleHint")}className="group cursor-pointer select-none"><div@@ -690,7 +697,7 @@ function TextPage({ onAddText }: { onAddText: () => void }) {</span></div><span className="mt-1 block truncate text-[11px] leading-tight text-secondary">- Default title+ {t("mediaBin.defaultTitle")}</span></li></ul>@@ -716,9 +723,12 @@ function CatalogueCard({onApply?: () => void;children: ReactNode;}) {+ const { t } = useLocale();return (<li- title={`${label}\n${blurb}\n${onApply ? "Click to apply to the selected clip" : "Not available yet"}`}+ title={`${label}\n${blurb}\n${+ onApply ? t("mediaBin.applyHint") : t("mediaBin.notAvailable")+ }`}onClick={onApply}className={`group select-none ${onApply ? "cursor-pointer" : ""}`}>@@ -741,7 +751,7 @@ function CatalogueCard({className="absolute bottom-1 right-1 rounded bg-black/55 px-1 py-px font-technicaltext-[10px] text-white">- Soon+ {t("mediaBin.soon")}</span>)}</div>@@ -858,6 +868,7 @@ function TemplatesPage({onSaveTemplate: () => void;}) {const [templates, setTemplates] = useState<TemplateInfo[] | null>(null);+ const { t, tp } = useLocale();useEffect(() => {let cancelled = false;@@ -887,14 +898,13 @@ function TemplatesPage({transition-colors hover:border-accent hover:bg-hover hover:text-primary"><Icon name="slot" size={14} />- Save this project as a template+ {t("mediaBin.saveAsTemplate")}</button></div>{templates !== null && templates.length === 0 ? (<Empty icon={<Icon name="slot" size={28} strokeWidth={1.5} />}>- No templates yet. Mark media as slots, then save this project as a template - it will- ask for the user's own clips in those slots.+ {t("mediaBin.noTemplates")}</Empty>) : (<ul className={CARD_GRID}>@@ -902,9 +912,9 @@ function TemplatesPage({<li key={template.path} className="group relative select-none"><buttontype="button"- title={`${template.name}-${template.slots.length} slot${template.slots.length === 1 ? "" : "s"} · ${template.width} x ${template.height}-Click to start a new project from this template`}+ title={`${template.name}\n${tp("mediaBin.slotCount", template.slots.length)} · ${+ template.width+ } x ${template.height}\n${t("mediaBin.useTemplateHint")}`}onClick={() => onUse(template)}className="w-full cursor-pointer text-left">@@ -913,13 +923,13 @@ Click to start a new project from this template`}{template.name}</span><span className="block font-technical text-[10px] text-tertiary">- {template.slots.length} slot{template.slots.length === 1 ? "" : "s"}+ {tp("mediaBin.slotCount", template.slots.length)}</span></button><buttontype="button"- aria-label={`Delete the template ${template.name}`}- title="Delete this template for good"+ aria-label={t("mediaBin.deleteTemplate", { name: template.name })}+ title={t("mediaBin.deleteTemplateHint")}onClick={(event) => {event.stopPropagation();void remove(template);diff --git a/desktop/src/components/ModifyProjectDialog.tsx b/desktop/src/components/ModifyProjectDialog.tsxindex 85d677e6..073385f5 100644--- a/desktop/src/components/ModifyProjectDialog.tsx+++ b/desktop/src/components/ModifyProjectDialog.tsx@@ -1,5 +1,6 @@import { useEffect, useState } from "react";+import { useLocale, type MsgKey } from "../lib/i18n";import { Icon } from "./Icon";/** Output bounds the encoder accepts comfortably; also the preview footer's. */@@ -32,6 +33,7 @@ export function ModifyProjectDialog({const [draftName, setDraftName] = useState(name);const [width, setWidth] = useState(String(frame.width));const [height, setHeight] = useState(String(frame.height));+ const { t } = useLocale();useEffect(() => {const onKey = (event: KeyboardEvent) => {@@ -69,12 +71,12 @@ export function ModifyProjectDialog({<div className="surface w-full max-w-sm rounded-2xl p-6"><div className="mb-4 flex items-center gap-2"><Icon name="settings" size={16} className="text-accent" />- <h2 className="text-sm font-semibold text-primary">Project details</h2>+ <h2 className="text-sm font-semibold text-primary">{t("modifyProject.title")}</h2></div><label className="mb-3 block"><span className="mb-1 block text-[11px] font-semibold uppercase tracking-wider text-tertiary">- Name+ {t("modifyProject.name")}</span><inputvalue={draftName}@@ -90,13 +92,13 @@ export function ModifyProjectDialog({<div className="mb-3 grid grid-cols-2 gap-3">{([- ["Width", width, setWidth],- ["Height", height, setHeight],- ] as const- ).map(([label, value, set]) => (- <label key={label} className="block">+ ["modifyProject.width", width, setWidth],+ ["modifyProject.height", height, setHeight],+ ] as [MsgKey, string, (value: string) => void][]+ ).map(([labelKey, value, set]) => (+ <label key={labelKey} className="block"><span className="mb-1 block text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {label}+ {t(labelKey)}</span><inputvalue={value}@@ -112,13 +114,9 @@ export function ModifyProjectDialog({</div><p className="mb-5 flex items-baseline justify-between text-xs text-secondary">- <span>Frame rate</span>- <span- className="font-technical text-primary"- title="Fixed for the project's lifetime: every cut is quantised to this grid,-and changing it would re-time the whole edit."- >- {frameRate.toFixed(2)} fps · fixed+ <span>{t("modifyProject.frameRate")}</span>+ <span className="font-technical text-primary" title={t("modifyProject.frameRateHint")}>+ {t("modifyProject.frameRateValue", { rate: frameRate.toFixed(2) })}</span></p>@@ -129,7 +127,7 @@ and changing it would re-time the whole edit."className="flex-1 cursor-pointer rounded-lg bg-hover px-4 py-2 text-sm text-primarytransition-colors hover:bg-active">- Cancel+ {t("common.cancel")}</button><buttontype="button"@@ -139,7 +137,7 @@ and changing it would re-time the whole edit."text-on-accent transition-colors hover:bg-accent-hoverdisabled:cursor-not-allowed disabled:opacity-40">- {busy ? "Saving..." : "Save"}+ {busy ? t("modifyProject.saving") : t("modifyProject.save")}</button></div></div>diff --git a/desktop/src/components/Preview.tsx b/desktop/src/components/Preview.tsxindex e3701723..695c3ad8 100644--- a/desktop/src/components/Preview.tsx+++ b/desktop/src/components/Preview.tsx@@ -12,6 +12,7 @@ import { buildPreviewLook, type AppliedEffect, type CanvasOp } from "../lib/effeimport type { PreviewSource, TextOverlay } from "../lib/monitor";import { timecode } from "../lib/time";import { MAX_SCALE, MIN_SCALE } from "../lib/editor";+import { useLocale, type MsgKey } from "../lib/i18n";import { textCss } from "../lib/text";import { Icon, IconButton } from "./Icon";import { Menu } from "./Menu";@@ -318,6 +319,7 @@ export function Preview({onStep: (frames: number) => void;onSeek: (seconds: number) => void;}) {+ const { t } = useLocale();const video = useRef<HTMLVideoElement>(null);const still = useRef<HTMLImageElement>(null);const loadedClip = useRef<string | null>(null);@@ -687,7 +689,7 @@ export function Preview({<div className="absolute inset-0 flex flex-col items-center justify-center gap-3text-on-stage"><Icon name="film" size={30} strokeWidth={1.5} />- <p className="text-xs">Nothing under the playhead</p>+ <p className="text-xs">{t("preview.nothingUnderPlayhead")}</p></div>)}</div>@@ -717,29 +719,34 @@ export function Preview({</span><div className="flex items-center gap-0.5">- <IconButton icon="skipStart" label="Go to start" size={7} onClick={() => onSeek(0)} />+ <IconButton+ icon="skipStart"+ label={t("preview.goToStart")}+ size={7}+ onClick={() => onSeek(0)}+ /><IconButtonicon="stepBack"- label="Previous frame"+ label={t("preview.prevFrame")}size={7}onClick={() => onStep(-1)}/><IconButtonicon={playing ? "pause" : "play"}- label={playing ? "Pause (Space)" : "Play (Space)"}+ label={playing ? t("preview.pause") : t("preview.play")}onClick={onTogglePlay}tone="go"active={playing}/><IconButtonicon="stepForward"- label="Next frame"+ label={t("preview.nextFrame")}size={7}onClick={() => onStep(1)}/><IconButtonicon="skipEnd"- label="Go to end"+ label={t("preview.goToEnd")}size={7}onClick={() => onSeek(duration)}/>@@ -767,7 +774,11 @@ export function Preview({// and the numbers live in the tooltip and the menu rows -// spelling them out here crowded the tray for nothing.<span- title={`Output size: ${ratioLabel(frame.width, frame.height)} · ${frame.width} x ${frame.height}`}+ title={t("preview.outputSize", {+ ratio: ratioLabel(frame.width, frame.height),+ width: frame.width,+ height: frame.height,+ })}className={`flex items-center gap-1 rounded-md px-1.5 py-1 transition-colors ${open? "bg-active text-primary"@@ -790,11 +801,11 @@ export function Preview({* Engine-preview resolutions, as fractions of the output frame. The labels* follow the convention every editor uses; the pixels follow the project.*/-const PREVIEW_QUALITIES = [- { label: "Full", ratio: "1:1", value: 1 },- { label: "Half", ratio: "1:2", value: 0.5 },- { label: "Quarter", ratio: "1:4", value: 0.25 },-] as const;+const PREVIEW_QUALITIES: { labelKey: MsgKey; ratio: string; value: number }[] = [+ { labelKey: "preview.full", ratio: "1:1", value: 1 },+ { labelKey: "preview.half", ratio: "1:2", value: 0.5 },+ { labelKey: "preview.quarter", ratio: "1:4", value: 0.25 },+];/*** The preview-quality picker, next to the output-size menu it modifies:@@ -809,6 +820,7 @@ function QualityMenu({quality: number;onQualityChange: (quality: number) => void;}) {+ const { t } = useLocale();const active =PREVIEW_QUALITIES.find((option) => option.value === quality) ?? PREVIEW_QUALITIES[1];return (@@ -817,7 +829,7 @@ function QualityMenu({direction="up"groups={[PREVIEW_QUALITIES.map((option) => ({- label: `${option.label} — ${option.ratio}`,+ label: `${t(option.labelKey)} — ${option.ratio}`,leading: (<spanclassName={`h-1 w-1 rounded-full ${@@ -830,7 +842,7 @@ function QualityMenu({]}trigger={(open) => (<span- title={`Preview quality: ${active.label} (${active.ratio})`}+ title={t("preview.qualityHint", { label: t(active.labelKey), ratio: active.ratio })}className={`flex items-center gap-1 rounded-md px-1.5 py-1 transition-colors ${open? "bg-active text-primary"diff --git a/desktop/src/components/RightPanel.tsx b/desktop/src/components/RightPanel.tsxindex d34a2972..9a0e06cc 100644--- a/desktop/src/components/RightPanel.tsx+++ b/desktop/src/components/RightPanel.tsx@@ -9,6 +9,7 @@ import {type EditorProject,type MediaItem,} from "../lib/editor";+import { useLocale, type MsgKey } from "../lib/i18n";import { AdjustPanel } from "./AdjustPanel";import { EffectsPanel } from "./EffectsPanel";import { FiltersPanel } from "./FiltersPanel";@@ -28,21 +29,23 @@ export type RightTab = "details" | "adjust" | "filters" | "effects" | "text";* offering those tabs would be offering panels that can only say "nothing* here".*/-const DETAILS_TABS: { id: RightTab; label: string }[] = [{ id: "details", label: "Details" }];+const DETAILS_TABS: { id: RightTab; labelKey: MsgKey }[] = [+ { id: "details", labelKey: "rightPanel.details" },+];-const CLIP_TABS: { id: RightTab; label: string }[] = [- { id: "adjust", label: "Adjust" },- { id: "filters", label: "Filters" },- { id: "effects", label: "Effects" },+const CLIP_TABS: { id: RightTab; labelKey: MsgKey }[] = [+ { id: "adjust", labelKey: "rightPanel.adjust" },+ { id: "filters", labelKey: "rightPanel.filters" },+ { id: "effects", labelKey: "rightPanel.effects" },];// A still has picture but no sound, so it gets Effects but not Filters.-const IMAGE_TABS: { id: RightTab; label: string }[] = [- { id: "adjust", label: "Adjust" },- { id: "effects", label: "Effects" },+const IMAGE_TABS: { id: RightTab; labelKey: MsgKey }[] = [+ { id: "adjust", labelKey: "rightPanel.adjust" },+ { id: "effects", labelKey: "rightPanel.effects" },];-const TEXT_TABS: { id: RightTab; label: string }[] = [{ id: "text", label: "Text" }];+const TEXT_TABS: { id: RightTab; labelKey: MsgKey }[] = [{ id: "text", labelKey: "rightPanel.text" }];/*** The right-hand panel.@@ -97,6 +100,7 @@ export const RightPanel = memo(function RightPanel({/** Opens the project-details editor (name, output frame). */onModifyProject: () => void;}) {+ const { t } = useLocale();const isText = clip?.kind === "text";const tabs = clip? isText@@ -114,7 +118,7 @@ export const RightPanel = memo(function RightPanel({const single = tabs.length === 1;return (- <Panel title={single ? tabs[0].label : undefined}>+ <Panel title={single ? t(tabs[0].labelKey) : undefined}>{!single && (<div className="sticky top-0 z-10 border-b border-hairline bg-panel px-2 pb-2 pt-2"><div className="flex rounded-lg bg-sunken p-0.5">@@ -130,7 +134,7 @@ export const RightPanel = memo(function RightPanel({: "text-secondary hover:text-primary"}`}>- {entry.label}+ {t(entry.labelKey)}</button>))}</div>diff --git a/desktop/src/components/SaveTemplateDialog.tsx b/desktop/src/components/SaveTemplateDialog.tsxindex 5ed787af..9dce62ef 100644--- a/desktop/src/components/SaveTemplateDialog.tsx+++ b/desktop/src/components/SaveTemplateDialog.tsx@@ -1,5 +1,6 @@import { useEffect, useState } from "react";+import { useLocale } from "../lib/i18n";import { Icon } from "./Icon";/**@@ -26,6 +27,7 @@ export function SaveTemplateDialog({onCancel: () => void;}) {const [name, setName] = useState(defaultName);+ const { t, tp } = useLocale();useEffect(() => {const onKey = (event: KeyboardEvent) => {@@ -51,21 +53,17 @@ export function SaveTemplateDialog({<div className="surface w-full max-w-sm rounded-2xl p-6"><div className="mb-2 flex items-center gap-2"><Icon name="slot" size={16} className="text-accent" />- <h2 className="text-sm font-semibold text-primary">Save as template</h2>+ <h2 className="text-sm font-semibold text-primary">{t("saveTemplate.title")}</h2></div><p className="mb-4 text-xs leading-relaxed text-secondary">- {slotCount > 0- ? `${slotCount} slot${slotCount === 1 ? "" : "s"} will ask for the user's own media. ` +- "Everything else - music, overlays, titles - is copied into the template."- : "No media is marked as a slot, so this template opens as a ready-made project. " +- "Mark slots in the bin first if users should supply their own clips."}+ {slotCount > 0 ? tp("saveTemplate.slots", slotCount) : t("saveTemplate.noSlots")}</p><inputvalue={name}autoFocusspellCheck={false}- placeholder="Template name"+ placeholder={t("saveTemplate.namePlaceholder")}onChange={(event) => setName(event.target.value)}onFocus={(event) => event.currentTarget.select()}onKeyDown={(event) => event.key === "Enter" && save()}@@ -80,7 +78,7 @@ export function SaveTemplateDialog({className="flex-1 cursor-pointer rounded-lg bg-hover px-4 py-2 text-sm text-primarytransition-colors hover:bg-active">- Cancel+ {t("common.cancel")}</button><buttontype="button"@@ -90,7 +88,7 @@ export function SaveTemplateDialog({text-on-accent transition-colors hover:bg-accent-hoverdisabled:cursor-not-allowed disabled:opacity-40">- {busy ? "Saving..." : "Save template"}+ {busy ? t("saveTemplate.saving") : t("saveTemplate.save")}</button></div></div>diff --git a/desktop/src/components/StartScreen.tsx b/desktop/src/components/StartScreen.tsxindex c22ccacc..fa88b951 100644--- a/desktop/src/components/StartScreen.tsx+++ b/desktop/src/components/StartScreen.tsx@@ -20,6 +20,7 @@ import {type TemplateSlot,} from "../lib/engine";import { ErrorNotice } from "./ErrorNotice";+import { useLocale, type MsgKey } from "../lib/i18n";import { relativeTime } from "../lib/time";import { Icon } from "./Icon";import { TemplateThumb } from "./TemplateThumb";@@ -38,12 +39,12 @@ export interface ProjectSession {rateDen: number;}-const RESOLUTIONS = [- { label: "1080p", width: 1920, height: 1080 },- { label: "720p", width: 1280, height: 720 },- { label: "4K", width: 3840, height: 2160 },- { label: "Vertical", width: 1080, height: 1920 },-] as const;+const RESOLUTIONS: { labelKey: MsgKey; width: number; height: number }[] = [+ { labelKey: "startScreen.res1080p", width: 1920, height: 1080 },+ { labelKey: "startScreen.res720p", width: 1280, height: 720 },+ { labelKey: "startScreen.res4k", width: 3840, height: 2160 },+ { labelKey: "startScreen.resVertical", width: 1080, height: 1920 },+];// Stored as fractions because 29.97 is 30000/1001 and never anything else.const FRAME_RATES = [@@ -75,7 +76,8 @@ export function StartScreen({* inside the editor lands here. */initialTemplate?: TemplateInfo | null;}) {- const [name, setName] = useState(initialTemplate?.name ?? "Untitled project");+ const { t, tp } = useLocale();+ const [name, setName] = useState(initialTemplate?.name ?? t("startScreen.untitled"));const [location, setLocation] = useState("");const [resolution, setResolution] = useState<(typeof RESOLUTIONS)[number]>(RESOLUTIONS[0]);const [rate, setRate] = useState<(typeof FRAME_RATES)[number]>(FRAME_RATES[3]);@@ -124,20 +126,23 @@ export function StartScreen({if (busy) return;const chosen = await open({multiple: false,- title: `Choose media for "${slot.name}"`,+ title: t("startScreen.chooseMediaFor", { name: slot.name }),filters: [slot.kind === "audio"- ? { name: "Audio", extensions: ["mp3", "wav", "flac", "aac", "m4a", "ogg", "opus"] }+ ? {+ name: t("startScreen.audioFilter"),+ extensions: ["mp3", "wav", "flac", "aac", "m4a", "ogg", "opus"],+ }: {// A photo in a video slot is fine - it freeze-frames for the// slot's length - so visual slots take either.- name: "Video or images",+ name: t("startScreen.videoImagesFilter"),extensions: ["mp4", "mov", "mkv", "webm", "avi", "m4v","png", "jpg", "jpeg", "webp", "bmp", "tif", "tiff", "avif", "gif",],},- { name: "All files", extensions: ["*"] },+ { name: t("startScreen.allFilesFilter"), extensions: ["*"] },],});if (typeof chosen !== "string") return;@@ -199,14 +204,14 @@ export function StartScreen({const chosen = await open({directory: true,multiple: false,- title: "Where should this project live?",+ title: t("startScreen.locationTitle"),defaultPath: location || undefined,});if (typeof chosen === "string") setLocation(chosen);};const create = async () => {- const trimmed = name.trim() || "Untitled project";+ const trimmed = name.trim() || t("startScreen.untitled");if (!location.trim() || busy) return;setBusy(true);@@ -257,21 +262,24 @@ export function StartScreen({transition-opacity hover:opacity-70"><Icon name="chevronRight" size={11} className="rotate-180" />- All templates+ {t("startScreen.allTemplates")}</button>)}<h1 className="font-display text-[34px] font-semibold leading-tight tracking-[-0.03em] text-primary">- {template ? template.name : "New project"}+ {template ? template.name : t("startScreen.newProject")}</h1><p className="mt-1.5 text-sm text-secondary">{template- ? `Pick a clip for each slot. The template's timing, music and effects stay as designed - ` +- `${template.width} x ${template.height} at ${(template.rateNum / template.rateDen).toFixed(2)} fps.`- : "These settings apply to the whole edit and cannot be changed later."}+ ? t("startScreen.templateIntro", {+ width: template.width,+ height: template.height,+ rate: (template.rateNum / template.rateDen).toFixed(2),+ })+ : t("startScreen.settingsIntro")}</p></header>- <Field label="Name">+ <Field label={t("startScreen.name")}><inputvalue={name}autoFocus@@ -284,12 +292,12 @@ export function StartScreen({/></Field>- <Field label="Location">+ <Field label={t("startScreen.location")}><div className="flex items-center gap-3"><inputvalue={location}spellCheck={false}- placeholder="Choose a folder"+ placeholder={t("startScreen.chooseFolder")}onChange={(event) => setLocation(event.target.value)}className="min-w-0 flex-1 bg-transparent py-1 font-technical text-[12px] text-primaryoutline-none placeholder:text-tertiary"@@ -300,20 +308,20 @@ export function StartScreen({className="shrink-0 cursor-pointer text-[13px] text-accent transition-opacityhover:opacity-70">- Choose...+ {t("startScreen.choose")}</button></div></Field>{!template && (<>- <Field label="Resolution">+ <Field label={t("startScreen.resolution")}><Segmented- options={RESOLUTIONS.map((option) => option.label)}- value={resolution.label}+ options={RESOLUTIONS.map((option) => t(option.labelKey))}+ value={t(resolution.labelKey)}onChange={(label) =>setResolution(- RESOLUTIONS.find((option) => option.label === label) ?? RESOLUTIONS[0],+ RESOLUTIONS.find((option) => t(option.labelKey) === label) ?? RESOLUTIONS[0],)}/>@@ -322,7 +330,7 @@ export function StartScreen({</p></Field>- <Field label="Frame rate" last>+ <Field label={t("startScreen.frameRate")} last><Segmentedoptions={FRAME_RATES.map((option) => option.label)}value={rate.label}@@ -338,7 +346,7 @@ export function StartScreen({)}{template && (- <Field label={`Slots (${template.slots.length})`} last>+ <Field label={t("startScreen.slots", { count: template.slots.length })} last><ul className="flex flex-col gap-1.5">{template.slots.map((slot, index) => {const fill = fills[slot.mediaId];@@ -360,7 +368,16 @@ export function StartScreen({{fill ? fill.item.name : `${index + 1}. ${slot.name}`}</span><span className="block font-technical text-[11px] text-tertiary">- {slot.kind} · {slot.seconds.toFixed(1)}s on the timeline+ {t("startScreen.slotSeconds", {+ kind: t(+ slot.kind === "audio"+ ? "startScreen.kindAudio"+ : slot.kind === "image"+ ? "startScreen.kindImage"+ : "startScreen.kindVideo",+ ),+ seconds: slot.seconds.toFixed(1),+ })}</span></span><button@@ -370,15 +387,13 @@ export function StartScreen({className="shrink-0 cursor-pointer text-[13px] text-accent transition-opacityhover:opacity-70 disabled:cursor-not-allowed disabled:opacity-40">- {fill ? "Change..." : "Choose..."}+ {fill ? t("startScreen.change") : t("startScreen.choose")}</button></li>);})}{template.slots.length === 0 && (- <li className="text-[12px] text-tertiary">- This template has no slots - it opens ready-made.- </li>+ <li className="text-[12px] text-tertiary">{t("startScreen.noSlots")}</li>)}</ul></Field>@@ -399,7 +414,7 @@ export function StartScreen({text-on-accent transition-colors hover:bg-accent-hoverdisabled:cursor-not-allowed disabled:opacity-40">- {busy ? "Creating..." : "Create"}+ {busy ? t("startScreen.creating") : t("startScreen.create")}</button><p className="flex items-center gap-1.5 text-[11px] text-tertiary"><Icon name="info" size={12} className="shrink-0" />@@ -407,16 +422,18 @@ export function StartScreen({? (() => {const missing = template.slots.filter((slot) => !fills[slot.mediaId]).length;return missing > 0- ? `${missing} slot${missing === 1 ? "" : "s"} still need${missing === 1 ? "s" : ""} a clip.`- : "Every slot is filled.";+ ? tp("startScreen.slotsMissing", missing)+ : t("startScreen.slotsFilled");})()- : "The project folder is created now; the edit autosaves into it."}+ : t("startScreen.folderNote")}</p></div>{!template && templates.length > 0 && (<section className="mt-14 border-t border-hairline pt-7">- <h2 className="mb-3 text-[13px] font-semibold text-secondary">Start from a template</h2>+ <h2 className="mb-3 text-[13px] font-semibold text-secondary">+ {t("startScreen.fromTemplate")}+ </h2><ul className="grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))] gap-3">{templates.map((entry) => (<li key={entry.path} className="group relative">@@ -432,14 +449,14 @@ export function StartScreen({{entry.name}</span><span className="block font-technical text-[11px] text-tertiary">- {entry.slots.length} slot{entry.slots.length === 1 ? "" : "s"} · {entry.width}{" "}- x {entry.height}+ {tp("startScreen.slotCount", entry.slots.length)} · {entry.width} x{" "}+ {entry.height}</span></button><buttontype="button"- aria-label={`Delete the template ${entry.name}`}- title="Delete this template for good"+ aria-label={t("startScreen.deleteTemplate", { name: entry.name })}+ title={t("startScreen.deleteTemplateHint")}onClick={() => void removeTemplate(entry)}className="invisible absolute right-1.5 top-1.5 cursor-pointer roundedbg-black/55 p-1 text-white transition-colors hover:bg-danger@@ -459,7 +476,9 @@ export function StartScreen({something to show. */}{recents.length > 0 && (<section className="mt-14 border-t border-hairline pt-7 lg:mt-0 lg:border-t-0 lg:pt-0">- <h2 className="mb-3 text-[13px] font-semibold text-secondary">Recent</h2>+ <h2 className="mb-3 text-[13px] font-semibold text-secondary">+ {t("startScreen.recent")}+ </h2><ul className="flex flex-col gap-1.5">{recents.map((project) => (<li@@ -492,8 +511,8 @@ export function StartScreen({<buttontype="button"- aria-label={`Remove ${project.name} from recents`}- title="Remove from this list. The folder is left alone."+ aria-label={t("startScreen.removeRecent", { name: project.name })}+ title={t("startScreen.removeRecentHint")}onClick={() => void forget(project)}className="invisible shrink-0 cursor-pointer rounded p-1 text-tertiarytransition-colors hover:bg-active hover:text-primarydiff --git a/desktop/src/components/TextPanel.tsx b/desktop/src/components/TextPanel.tsxindex 74fd1a46..d21f61d6 100644--- a/desktop/src/components/TextPanel.tsx+++ b/desktop/src/components/TextPanel.tsx@@ -1,4 +1,5 @@import type { Clip, CustomFont } from "../lib/editor";+import { t, useLocale } from "../lib/i18n";import { FONTS, WEIGHTS, type TextStyle } from "../lib/text";import { Group, Slider, Toggle } from "./controls";import { Icon } from "./Icon";@@ -33,10 +34,12 @@ export function TextPanel({onAddFont: () => void;onRemoveFont: (family: string) => void;}) {+ const { t } = useLocale();+if (!clip || clip.kind !== "text" || !clip.text) {return (<Empty icon={<Icon name="type" size={26} strokeWidth={1.5} />}>- Select a text clip to style it.+ {t("textPanel.empty")}</Empty>);}@@ -65,28 +68,28 @@ export function TextPanel({return (<div className="px-3 py-3">- <Group title="Content">+ <Group title={t("textPanel.content")}><textareavalue={style.content}onChange={(event) => set({ content: event.target.value })}onBlur={onCommit}rows={3}spellCheck={false}- placeholder="Your text"+ placeholder={t("textPanel.placeholder")}className="mb-3 w-full resize-y rounded-lg border border-hairline-strong bg-sunken px-2.5py-2 text-[13px] leading-snug text-primary outline-noneplaceholder:text-tertiary focus:border-accent"/></Group>- <Group title="Font">+ <Group title={t("textPanel.font")}><selectvalue={style.fontFamily}onChange={(event) => commitSet({ fontFamily: event.target.value })}className="mb-2 w-full cursor-pointer rounded-lg border border-hairline-strong bg-sunkenpx-2.5 py-2 text-[12px] text-primary outline-none focus:border-accent">- <optgroup label="Bundled">+ <optgroup label={t("textPanel.bundled")}>{FONTS.filter((font) => font.bundled).map((font) => (<option key={font.value} value={font.value}>{font.label}@@ -94,16 +97,16 @@ export function TextPanel({))}</optgroup>{custom.length > 0 && (- <optgroup label="Yours">+ <optgroup label={t("textPanel.yours")}>{custom.map((font) => (<option key={font.family} value={`"${font.family}"`}>{font.family}- {font.missing ? " (file missing)" : ""}+ {font.missing ? ` ${t("textPanel.fileMissing")}` : ""}</option>))}</optgroup>)}- <optgroup label="System">+ <optgroup label={t("textPanel.system")}>{FONTS.filter((font) => !font.bundled).map((font) => (<option key={font.value} value={font.value}>{font.label}@@ -121,7 +124,7 @@ export function TextPanel({hover:text-primary"><Icon name="import" size={12} />- Add font file+ {t("textPanel.addFontFile")}</button>{custom.length > 0 && (@@ -140,7 +143,7 @@ export function TextPanel({</span><buttontype="button"- aria-label={`Remove ${font.family}`}+ aria-label={t("textPanel.removeFont", { name: font.family })}onClick={() => onRemoveFont(font.family)}className="shrink-0 cursor-pointer text-tertiary hover:text-danger">@@ -165,27 +168,35 @@ export function TextPanel({</select><Slider- label="Size"+ label={t("textPanel.size")}value={style.fontSize}min={0.02}max={0.4}step={0.005}// Shown as a share of frame height, which is the thing it actually// is. Points would be a lie: the frame can be any resolution.- format={(value) => `${(value * 100).toFixed(1)}% of height`}+ format={(value) => t("textPanel.sizeOfHeight", { value: (value * 100).toFixed(1) })}onChange={(fontSize) => set({ fontSize })}onCommit={onCommit}onReset={() => commitSet({ fontSize: 0.09 })}/>- <Toggle label="Italic" checked={style.italic} onChange={(italic) => commitSet({ italic })} />+ <Toggle+ label={t("textPanel.italic")}+ checked={style.italic}+ onChange={(italic) => commitSet({ italic })}+ /></Group>- <Group title="Colour">- <Swatch label="Fill" value={style.color} onChange={(color) => commitSet({ color })} />+ <Group title={t("textPanel.colour")}>+ <Swatch+ label={t("textPanel.fill")}+ value={style.color}+ onChange={(color) => commitSet({ color })}+ /><Slider- label="Opacity"+ label={t("textPanel.opacity")}value={style.opacity}min={0}max={1}@@ -196,49 +207,49 @@ export function TextPanel({/><Toggle- label="Drop shadow"- hint="Keeps text readable over bright footage."+ label={t("textPanel.dropShadow")}+ hint={t("textPanel.dropShadowHint")}checked={style.shadow}onChange={(shadow) => commitSet({ shadow })}/><Toggle- label="Plate behind text"- hint="A solid block, for when a shadow is not enough."+ label={t("textPanel.plate")}+ hint={t("textPanel.plateHint")}checked={style.background !== ""}onChange={(on) => commitSet({ background: on ? "#000000" : "" })}/>{style.background !== "" && (<Swatch- label="Plate colour"+ label={t("textPanel.plateColour")}value={style.background}onChange={(background) => commitSet({ background })}/>)}</Group>- <Group title="Outline">+ <Group title={t("textPanel.outline")}><Slider- label="Width"+ label={t("textPanel.width")}value={style.strokeWidth}min={0}max={0.15}step={0.005}- format={(value) => (value === 0 ? "none" : `${(value * 100).toFixed(1)}%`)}+ format={(value) => (value === 0 ? t("textPanel.none") : `${(value * 100).toFixed(1)}%`)}onChange={(strokeWidth) => set({ strokeWidth })}onCommit={onCommit}onReset={() => commitSet({ strokeWidth: 0 })}/>{style.strokeWidth > 0 && (<Swatch- label="Outline colour"+ label={t("textPanel.outlineColour")}value={style.strokeColor}onChange={(strokeColor) => commitSet({ strokeColor })}/>)}</Group>- <Group title="Layout">+ <Group title={t("textPanel.layout")}><div className="mb-3 flex rounded-lg bg-sunken p-0.5">{(["left", "center", "right"] as const).map((align) => (<button@@ -253,13 +264,19 @@ export function TextPanel({: "text-secondary hover:text-primary"}`}>- {align}+ {t(+ align === "left"+ ? "textPanel.alignLeft"+ : align === "center"+ ? "textPanel.alignCenter"+ : "textPanel.alignRight",+ )}</button>))}</div><Slider- label="Line height"+ label={t("textPanel.lineHeight")}value={style.lineHeight}min={0.8}max={2.5}@@ -271,7 +288,7 @@ export function TextPanel({/><Slider- label="Tracking"+ label={t("textPanel.tracking")}value={style.tracking}min={-0.1}max={0.4}@@ -283,33 +300,33 @@ export function TextPanel({/></Group>- <Group title="Position">+ <Group title={t("textPanel.position")}>{/*Offsets are fractions of the frame, and centred is zero - so thereset on each is "put it back in the middle", and a title composedhere sits in the same place at any export resolution.*/}<Slider- label="Horizontal"+ label={t("textPanel.horizontal")}value={clip.offsetX}min={-0.5}max={0.5}step={0.005}format={(value) =>- Math.abs(value) < 0.0025 ? "centred" : `${(value * 100).toFixed(1)}%`+ Math.abs(value) < 0.0025 ? t("textPanel.centred") : `${(value * 100).toFixed(1)}%`}onChange={(offsetX) => onChange({ offsetX })}onCommit={onCommit}onReset={() => { onChange({ offsetX: 0 }); onCommit(); }}/><Slider- label="Vertical"+ label={t("textPanel.vertical")}value={clip.offsetY}min={-0.5}max={0.5}step={0.005}format={(value) =>- Math.abs(value) < 0.0025 ? "centred" : `${(value * 100).toFixed(1)}%`+ Math.abs(value) < 0.0025 ? t("textPanel.centred") : `${(value * 100).toFixed(1)}%`}onChange={(offsetY) => onChange({ offsetY })}onCommit={onCommit}@@ -363,5 +380,5 @@ function Swatch({function firstLineOf(content: string): string {const line = content.split("\n").find((candidate) => candidate.trim() !== "");- return (line ?? "Text").trim().slice(0, 40) || "Text";+ return (line ?? t("textPanel.defaultName")).trim().slice(0, 40) || t("textPanel.defaultName");}diff --git a/desktop/src/components/TimelinePanel.tsx b/desktop/src/components/TimelinePanel.tsxindex 4beaeb98..58027400 100644--- a/desktop/src/components/TimelinePanel.tsx+++ b/desktop/src/components/TimelinePanel.tsx@@ -15,6 +15,7 @@ import {type TimelineMeta,type Track,} from "../lib/editor";+import { useLocale, type MsgKey } from "../lib/i18n";import { timecode } from "../lib/time";import { Icon, IconButton } from "./Icon";import { Menu, type MenuOption } from "./Menu";@@ -187,7 +188,7 @@ export function TimelinePanel({onSplitAtPlayhead: () => void;onMergeSelected: () => void;/** Null when the selection can be merged; otherwise why it cannot. */- mergeBlockedBecause: string | null;+ mergeBlockedBecause: MsgKey | null;onDeleteSelected: () => void;/** A bin item currently being dragged, in client coordinates. */mediaDrag: { x: number; y: number } | null;@@ -216,6 +217,7 @@ export function TimelinePanel({/** A move or trim drag finished; the echoed change becomes one command. */onGestureEnd: () => void;}) {+ const { t } = useLocale();const canvasRef = useRef<HTMLCanvasElement>(null);const drag = useRef<DragState | null>(null);/** Last pointer position, replayed by the edge-scroll loop. */@@ -932,30 +934,30 @@ export function TimelinePanel({);})()}<span className="self-center">- <IconButton icon="plus" label="New timeline" size={7} onClick={onAddTimeline} />+ <IconButton icon="plus" label={t("timeline.newTimeline")} size={7} onClick={onAddTimeline} /></span></div><Bar><IconButtonicon="select"- label="Select tool (V)"+ label={t("timeline.selectTool")}active={tool === "select"}onClick={() => onToolChange("select")}/><IconButtonicon="razor"- label="Razor tool (C)"+ label={t("timeline.razorTool")}active={tool === "razor"}onClick={() => onToolChange("razor")}/><Divider />- <IconButton icon="split" label="Split at playhead (Ctrl+B)" onClick={onSplitAtPlayhead} />+ <IconButton icon="split" label={t("timeline.split")} onClick={onSplitAtPlayhead} /><IconButtonicon="merge"// The reason lives in the tooltip: a button that greys out without// saying why leaves you guessing at the rule.- label={mergeBlockedBecause ?? "Merge selected clips (M)"}+ label={mergeBlockedBecause ? t(mergeBlockedBecause) : t("timeline.merge")}disabled={mergeBlockedBecause !== null}onClick={onMergeSelected}/>@@ -963,8 +965,8 @@ export function TimelinePanel({icon="trash"label={selectedClipIds.length > 1- ? `Delete ${selectedClipIds.length} clips (Del)`- : "Delete selected (Del)"+ ? t("timeline.deleteClips", { count: selectedClipIds.length })+ : t("timeline.deleteSelected")}tone="danger"disabled={selectedClipIds.length === 0}@@ -978,7 +980,7 @@ export function TimelinePanel({<Divider /><IconButtonicon="magnet"- label="Snapping (N)"+ label={t("timeline.snapping")}active={snap}onClick={() => onSnapChange(!snap)}/>@@ -991,7 +993,7 @@ export function TimelinePanel({groups={clipTools}trigger={(open) => (<span- title="Audio & video tools"+ title={t("timeline.avTools")}className={`flex h-9 items-center gap-0.5 rounded-lg px-1.5 transition-colorsduration-150 ${open@@ -1007,7 +1009,7 @@ export function TimelinePanel({</>)}<Divider />- <IconButton icon="plus" label="Add track" onClick={onAddTrack} />+ <IconButton icon="plus" label={t("timeline.addTrack")} onClick={onAddTrack} /><Spacer />@@ -1019,11 +1021,16 @@ export function TimelinePanel({<Divider /><IconButtonicon="fit"- label="Fit to window (F)"+ label={t("timeline.fit")}onClick={() => onFit(canvasRef.current?.clientWidth ?? 0)}/>- <IconButton icon="minus" label="Zoom out" size={7} onClick={() => onZoom(1.4)} />- <IconButton icon="plus" label="Zoom in" size={7} onClick={() => onZoom(1 / 1.4)} />+ <IconButton icon="minus" label={t("timeline.zoomOut")} size={7} onClick={() => onZoom(1.4)} />+ <IconButton+ icon="plus"+ label={t("timeline.zoomIn")}+ size={7}+ onClick={() => onZoom(1 / 1.4)}+ /></Bar><div className="flex min-h-0 flex-1">@@ -1118,6 +1125,7 @@ function TimelineTab({onDragPointerUp: (event: React.PointerEvent) => void;}) {const [renaming, setRenaming] = useState(false);+ const { t } = useLocale();if (renaming) {return (@@ -1147,7 +1155,7 @@ function TimelineTab({<spanrole="tab"aria-selected={active}- title={active ? timeline.name : `Switch to ${timeline.name}`}+ title={active ? timeline.name : t("timeline.switchTo", { name: timeline.name })}onClick={() => onSelect(timeline.id)}onDoubleClick={() => setRenaming(true)}onPointerDown={(event) => onDragPointerDown(timeline.id, event)}@@ -1175,8 +1183,8 @@ function TimelineTab({{closable && (<buttontype="button"- aria-label={`Delete ${timeline.name}`}- title={`Delete ${timeline.name}`}+ aria-label={t("timeline.deleteNamed", { name: timeline.name })}+ title={t("timeline.deleteNamed", { name: timeline.name })}onClick={(event) => {// The x must not also switch tabs: deleting an inactive timeline// should not first drag the editor onto it.@@ -1215,6 +1223,7 @@ function TrackHeader({}) {const silent = !track.visible && track.muted;const [renaming, setRenaming] = useState(false);+ const { t } = useLocale();return (<div@@ -1246,7 +1255,7 @@ function TrackHeader({) : (<spanonDoubleClick={() => setRenaming(true)}- title="Double-click to rename"+ title={t("timeline.renameHint")}className={`min-w-0 flex-1 cursor-default truncate text-xs ${silent ? "text-tertiary" : "text-primary"}`}@@ -1258,8 +1267,8 @@ function TrackHeader({{removable && !renaming && (<buttontype="button"- aria-label={`Remove ${track.name}`}- title={`Remove ${track.name} and its clips`}+ aria-label={t("timeline.removeTrack", { name: track.name })}+ title={t("timeline.removeTrackHint", { name: track.name })}onClick={() => onRemove(track.id)}className="invisible shrink-0 cursor-pointer rounded p-1 text-tertiary transition-colorshover:bg-danger-soft hover:text-danger group-hover:visible"@@ -1269,14 +1278,14 @@ function TrackHeader({)}<IconButtonicon={track.visible ? "eye" : "eyeOff"}- label={track.visible ? "Hide picture on this track" : "Show picture on this track"}+ label={track.visible ? t("timeline.hideTrack") : t("timeline.showTrack")}size={7}active={!track.visible}onClick={() => onFlag(track.id, "visible", !track.visible)}/><IconButtonicon={track.muted ? "volumeOff" : "volume"}- label={track.muted ? "Unmute this track" : "Mute this track"}+ label={track.muted ? t("timeline.unmuteTrack") : t("timeline.muteTrack")}size={7}active={track.muted}onClick={() => onFlag(track.id, "muted", !track.muted)}diff --git a/desktop/src/components/TitleBar.tsx b/desktop/src/components/TitleBar.tsxindex f7517020..672bd947 100644--- a/desktop/src/components/TitleBar.tsx+++ b/desktop/src/components/TitleBar.tsx@@ -4,6 +4,7 @@ import { isTauri } from "@tauri-apps/api/core";import { getCurrentWindow } from "@tauri-apps/api/window";import logo from "../assets/wolfcut-logo.png";+import { useLocale } from "../lib/i18n";import type { Theme } from "../lib/theme";import { Icon } from "./Icon";import { Menu, type MenuOption } from "./Menu";@@ -54,6 +55,7 @@ export const TitleBar = memo(function TitleBar({onOpenSettings?: () => void;}) {const [maximized, setMaximized] = useState(false);+ const { t } = useLocale();const native = isTauri();const macOS = navigator.userAgent.includes("Mac");@@ -127,8 +129,8 @@ export const TitleBar = memo(function TitleBar({{onOpenSettings && (<buttontype="button"- title="Settings"- aria-label="Open settings"+ title={t("settings.title")}+ aria-label={t("titleBar.openSettings")}onClick={onOpenSettings}className="flex h-6 w-6 cursor-pointer items-center justify-center rounded-mdtext-secondary transition-colors hover:bg-hover hover:text-primary"@@ -139,8 +141,10 @@ export const TitleBar = memo(function TitleBar({<buttontype="button"- title={theme === "dark" ? "Switch to light" : "Switch to dark"}- aria-label={theme === "dark" ? "Switch to light theme" : "Switch to dark theme"}+ title={theme === "dark" ? t("titleBar.switchLight") : t("titleBar.switchDark")}+ aria-label={+ theme === "dark" ? t("titleBar.switchLightAria") : t("titleBar.switchDarkAria")+ }onClick={onToggleTheme}className="mr-1 flex h-6 w-6 cursor-pointer items-center justify-center rounded-mdtext-secondary transition-colors hover:bg-hover hover:text-primary"@@ -152,16 +156,16 @@ export const TitleBar = memo(function TitleBar({{native && !macOS && (<div className="flex h-full items-stretch">- <WindowButton label="Minimise" onClick={() => void control("minimize")}>+ <WindowButton label={t("titleBar.minimise")} onClick={() => void control("minimize")}><Icon name="winMinimize" size={14} strokeWidth={1.5} /></WindowButton><WindowButton- label={maximized ? "Restore" : "Maximise"}+ label={maximized ? t("titleBar.restore") : t("titleBar.maximise")}onClick={() => void control("toggle")}><Icon name={maximized ? "winRestore" : "winMaximize"} size={13} strokeWidth={1.5} /></WindowButton>- <WindowButton label="Close" onClick={() => void control("close")} danger>+ <WindowButton label={t("common.close")} onClick={() => void control("close")} danger><Icon name="close" size={15} strokeWidth={1.5} /></WindowButton></div>diff --git a/desktop/src/components/controls.tsx b/desktop/src/components/controls.tsxindex 3ecdd5c4..7d38162f 100644--- a/desktop/src/components/controls.tsx+++ b/desktop/src/components/controls.tsx@@ -1,6 +1,7 @@import { useRef, useState } from "react";import type { KeyboardEvent as ReactKeyboardEvent, PointerEvent as ReactPointerEvent } from "react";+import { useLocale } from "../lib/i18n";import { Icon } from "./Icon";/**@@ -91,6 +92,7 @@ export function Slider({/** Double-clicking the label returns the control to this value. */onReset?: () => void;}) {+ const { t } = useLocale();const track = useRef<HTMLDivElement>(null);// Where the last pointer event landed, so a shift-drag can be relative to// the previous position rather than jumping to the pointer.@@ -138,7 +140,7 @@ export function Slider({<div className="mb-1 flex items-baseline justify-between gap-2"><spanonDoubleClick={onReset}- title={onReset ? "Double-click to reset" : undefined}+ title={onReset ? t("controls.resetHint") : undefined}className={`text-[12px] text-secondary ${onReset ? "cursor-pointer" : ""}`}>{label}@@ -206,7 +208,7 @@ export function Slider({value={typing ?? String(Number(value.toFixed(4)))}inputMode="decimal"spellCheck={false}- aria-label={`${label} value`}+ aria-label={t("controls.sliderValue", { label })}onChange={(event) => setTyping(event.target.value)}onFocus={(event) => event.target.select()}onBlur={commitTyped}diff --git a/desktop/src/lib/editor.test.ts b/desktop/src/lib/editor.test.tsindex a4b29d3f..02e57c74 100644--- a/desktop/src/lib/editor.test.ts+++ b/desktop/src/lib/editor.test.ts@@ -131,8 +131,10 @@ describe("transformPatch mirrors SetClipTransform", () => {});describe("whyNotMerge phrases the engine's refusals", () => {- // The strings are the contract: the engine re-validates on the command and- // its error becomes the toast, so the tooltip and the toast must match.+ // The keys' en.json values are the engine's own refusal sentences: the+ // engine re-validates on the command and its error becomes the toast, so+ // in English the tooltip and the toast must match. Other locales translate+ // the tooltip while engine errors stay English.const halves = [clip({ id: "a", duration: 4 }),clip({ id: "b", start: 4, duration: 6, sourceStart: 4 }),@@ -142,23 +144,23 @@ describe("whyNotMerge phrases the engine's refusals", () => {expect(whyNotMerge(project(halves), ["a", "b"])).toBeNull();});- test("each refusal uses the engine's own sentence", () => {- expect(whyNotMerge(project(halves), ["a"])).toBe("Select two or more clips to merge.");+ test("each refusal names its reason", () => {+ expect(whyNotMerge(project(halves), ["a"])).toBe("timeline.mergeNeedTwo");expect(whyNotMerge(project([halves[0], { ...halves[1], trackId: "T2" }]), ["a", "b"]),- ).toBe("Merged clips must be on the same track.");+ ).toBe("timeline.mergeSameTrack");expect(whyNotMerge(project([halves[0], { ...halves[1], mediaId: "m2" }]), ["a", "b"]),- ).toBe("Merged clips must come from the same file.");+ ).toBe("timeline.mergeSameFile");expect(whyNotMerge(project([halves[0], { ...halves[1], speed: 2 }]), ["a", "b"]),- ).toBe("Merged clips must play at the same speed.");+ ).toBe("timeline.mergeSameSpeed");expect(whyNotMerge(project([halves[0], { ...halves[1], start: 5 }]), ["a", "b"]),- ).toBe("Merged clips must touch, with no gap or overlap.");+ ).toBe("timeline.mergeMustTouch");expect(whyNotMerge(project([halves[0], { ...halves[1], sourceStart: 0 }]), ["a", "b"]),- ).toBe("These pieces are no longer in their original order.");+ ).toBe("timeline.mergeOutOfOrder");});});diff --git a/desktop/src/lib/editor.ts b/desktop/src/lib/editor.tsindex e0572133..3888e6ad 100644--- a/desktop/src/lib/editor.ts+++ b/desktop/src/lib/editor.ts@@ -18,6 +18,7 @@* the echo never survives past its commit.*/+import type { MsgKey } from "./i18n";import type { Clip } from "./generated/Clip";import type { ClipPatch } from "./generated/ClipPatch";import type { Command as EditorCommand } from "./generated/Command";@@ -147,36 +148,36 @@ const JOIN_EPSILON = 1e-6;* twin of the engine's own check, for the disabled button's tooltip. The* engine re-validates on the command; this only phrases the reason early.*/-export function whyNotMerge(project: EditorProject, clipIds: readonly string[]): string | null {- if (clipIds.length < 2) return "Select two or more clips to merge.";+export function whyNotMerge(project: EditorProject, clipIds: readonly string[]): MsgKey | null {+ if (clipIds.length < 2) return "timeline.mergeNeedTwo";const timeline = activeTimeline(project);const clips = clipIds.flatMap((id) => {const clip = timeline.clips.find((candidate) => candidate.id === id);return clip ? [clip] : [];});- if (clips.length < 2) return "Select two or more clips to merge.";+ if (clips.length < 2) return "timeline.mergeNeedTwo";if (clips.some((clip) => clip.trackId !== clips[0].trackId)) {- return "Merged clips must be on the same track.";+ return "timeline.mergeSameTrack";}if (clips.some((clip) => clip.mediaId !== clips[0].mediaId)) {- return "Merged clips must come from the same file.";+ return "timeline.mergeSameFile";}if (clips.some((clip) => clip.speed !== clips[0].speed)) {- return "Merged clips must play at the same speed.";+ return "timeline.mergeSameSpeed";}const ordered = [...clips].sort((left, right) => left.start - right.start);for (let index = 1; index < ordered.length; index += 1) {const previous = ordered[index - 1];const current = ordered[index];if (Math.abs(current.start - (previous.start + previous.duration)) > JOIN_EPSILON) {- return "Merged clips must touch, with no gap or overlap.";+ return "timeline.mergeMustTouch";}if (Math.abs(current.sourceStart - (previous.sourceStart + previous.duration * previous.speed),) > JOIN_EPSILON) {- return "These pieces are no longer in their original order.";+ return "timeline.mergeOutOfOrder";}}return null;diff --git a/desktop/src/locales/en.json b/desktop/src/locales/en.jsonindex 79bb8ee4..a1e2344f 100644--- a/desktop/src/locales/en.json+++ b/desktop/src/locales/en.json@@ -1,4 +1,25 @@{+ "adjust.empty": "Select a single clip to adjust it.",+ "adjust.fadeIn": "Fade in",+ "adjust.fadeOut": "Fade out",+ "adjust.fades": "Fades",+ "adjust.level": "Level",+ "adjust.none": "none",+ "adjust.opacity": "Opacity",+ "adjust.pitchHint": "Off keeps the voice where it is. On is tape behaviour - faster also means higher.",+ "adjust.pitchToggle": "Change pitch with speed",+ "adjust.positionX": "Position X",+ "adjust.positionY": "Position Y",+ "adjust.rate": "Rate",+ "adjust.rotation": "Rotation",+ "adjust.scale": "Scale",+ "adjust.silent": "silent",+ "adjust.speed": "Speed",+ "adjust.speedHelp": "The clip covers the same material either way, so its length on the timeline changes to match.",+ "adjust.transform": "Transform",+ "adjust.transformHelp": "You can also drag the picture in the preview - corners scale, the handle above rotates. Double-click any label to reset it, or click a value to type one.",+ "adjust.volume": "Volume",+ "common.cancel": "Cancel","common.close": "Close","common.export": "Export","contextMenu.deleteClips.one": "Delete",@@ -8,6 +29,8 @@"contextMenu.moveToPlayhead": "Move to playhead","contextMenu.splitClips.one": "Split at playhead","contextMenu.splitClips.other": "Split {count} clips at playhead",+ "controls.resetHint": "Double-click to reset",+ "controls.sliderValue": "{label} value","dialog.addFont.filter": "Fonts","dialog.addFont.title": "Add a font","dialog.deleteTimeline.clipsLost.one": "The {count} clip on this timeline will be lost.",@@ -15,7 +38,130 @@"dialog.deleteTimeline.confirm": "Delete timeline","dialog.deleteTimeline.empty": "The timeline is empty; nothing else is affected.","dialog.deleteTimeline.title": "Delete \"{name}\"?",+ "effects.panel.addEffect": "Add an effect",+ "effects.panel.applied": "Applied",+ "effects.panel.appliedHelp": "Effects run top to bottom. The eye bypasses one without losing its settings - flick it to compare.",+ "effects.panel.bypass": "Bypass {name}",+ "effects.panel.duration": "Duration",+ "effects.panel.empty": "Select a video or image clip to add effects.",+ "effects.panel.enable": "Enable {name}",+ "effects.panel.moveEarlier": "Move earlier in the chain",+ "effects.panel.moveLater": "Move later in the chain",+ "effects.panel.noPreceding": "No clip ends where this one starts, so this transition currently renders as a plain cut.",+ "effects.panel.nothingToAdjust": "Nothing to adjust.",+ "effects.panel.remove": "Remove {name}",+ "effects.panel.transition": "Transition",+ "effects.panel.transitionHelp": "The transition on the cut into this clip. It needs the clip before it to stay touching - moved apart, it renders as a plain cut.","error.fontUnreadable": "Could not read {file} as a font.",+ "errorNotice.copied": "Copied",+ "errorNotice.copy": "Copy error",+ "errorNotice.dismiss": "Dismiss",+ "export.browse": "Browse",+ "export.clips.one": "{count} clip",+ "export.clips.other": "{count} clips",+ "export.contents": "Contents",+ "export.done": "Done",+ "export.duration": "Duration",+ "export.finished": "Export finished",+ "export.format": "Format",+ "export.frameOf": "frame {frame} of {total}",+ "export.mp4Filter": "MP4 video",+ "export.nothing": "Nothing to export",+ "export.quality.balanced": "Balanced",+ "export.quality.balancedHint": "default",+ "export.quality.high": "High",+ "export.quality.highHint": "large",+ "export.quality.small": "Small",+ "export.quality.smallHint": "compact",+ "export.qualityTitle": "Quality",+ "export.reveal": "Show in Finder",+ "export.saveTitle": "Export to",+ "export.saveTo": "Save to",+ "export.stageTitles": "drawing titles",+ "export.starting": "starting",+ "export.timeLeft": "about {duration} left",+ "export.titles.one": "{count} title",+ "export.titles.other": "{count} titles",+ "export.tryAgain": "Try again",+ "filters.panel.applied": "Applied",+ "filters.panel.appliedHelp": "Filters run top to bottom, and order is audible. The eye bypasses one without losing its settings - flick it to compare.",+ "filters.panel.bypass": "Bypass {name}",+ "filters.panel.clearSearch": "Clear search",+ "filters.panel.empty": "Select a single clip to add filters.",+ "filters.panel.emptyImage": "A still has no audio to filter.",+ "filters.panel.enable": "Enable {name}",+ "filters.panel.moveEarlier": "Move earlier in the chain",+ "filters.panel.moveLater": "Move later in the chain",+ "filters.panel.noMatches": "Nothing matches \"{query}\".",+ "filters.panel.remove": "Remove {name}",+ "filters.panel.searchPlaceholder": "Search filters",+ "inspector.audio": "Audio",+ "inspector.clip": "Clip",+ "inspector.clips": "Clips",+ "inspector.codec": "Codec",+ "inspector.contents": "Contents",+ "inspector.duration": "Duration",+ "inspector.end": "End",+ "inspector.exact": "Exact",+ "inspector.folder": "Folder",+ "inspector.inPoint": "In point",+ "inspector.media": "Media",+ "inspector.modify": "Modify",+ "inspector.name": "Name",+ "inspector.output": "Output",+ "inspector.path": "Path",+ "inspector.project": "Project",+ "inspector.rate": "Rate",+ "inspector.size": "Size",+ "inspector.source": "Source",+ "inspector.start": "Start",+ "inspector.track": "Track",+ "inspector.tracks": "Tracks",+ "inspector.unknown": "unknown",+ "inspector.video": "Video",+ "mediaBin.addTitleHint": "Adds a title at the playhead",+ "mediaBin.allFilesFilter": "All files",+ "mediaBin.allMedia": "All media",+ "mediaBin.applyHint": "Click to apply to the selected clip",+ "mediaBin.audioFallback": "audio",+ "mediaBin.cardHint": "Drag onto a track, or double-click to add at the playhead",+ "mediaBin.defaultTitle": "Default title",+ "mediaBin.delete": "Delete",+ "mediaBin.deleteTemplate": "Delete the template {name}",+ "mediaBin.deleteTemplateHint": "Delete this template for good",+ "mediaBin.dropHint": "Drop video and audio files anywhere in the window, or paste a path above.",+ "mediaBin.importMedia": "Import media",+ "mediaBin.importing": "Importing...",+ "mediaBin.kindAudio": "Audio",+ "mediaBin.kindImages": "Images",+ "mediaBin.kindVideo": "Video",+ "mediaBin.markSlot": "Mark {name} as a template slot",+ "mediaBin.markSlotHint": "Make this a template slot: saved templates ask for the user's own media here",+ "mediaBin.mediaFilter": "Media",+ "mediaBin.myTemplates": "My templates",+ "mediaBin.noTemplates": "No templates yet. Mark media as slots, then save this project as a template - it will ask for the user's own clips in those slots.",+ "mediaBin.notAvailable": "Not available yet",+ "mediaBin.releaseToImport": "Release to import",+ "mediaBin.removeFromBin": "Remove from bin",+ "mediaBin.removeItem": "Remove {name}",+ "mediaBin.saveAsTemplate": "Save this project as a template",+ "mediaBin.selectedCount": "{count} selected - drag any of them to place all",+ "mediaBin.sizeStill": "{size} still",+ "mediaBin.slotBadge": "Slot",+ "mediaBin.slotCount.one": "{count} slot",+ "mediaBin.slotCount.other": "{count} slots",+ "mediaBin.soon": "Soon",+ "mediaBin.still": "still",+ "mediaBin.tabEffects": "Effects",+ "mediaBin.tabMedia": "Media",+ "mediaBin.tabTemplates": "Templates",+ "mediaBin.tabText": "Text",+ "mediaBin.tabTransitions": "Transitions",+ "mediaBin.titles": "Titles",+ "mediaBin.unmarkSlot": "Unmark {name} as a template slot",+ "mediaBin.unmarkSlotHint": "No longer a template slot",+ "mediaBin.useTemplateHint": "Click to start a new project from this template",+ "mediaBin.videoEffects": "Video Effects","menu.clip.autoCaptions": "Auto captions","menu.clip.detachAudio": "Detach audio","menu.clip.reattachAudio": "Reattach audio",@@ -41,6 +187,39 @@"menu.view.title": "View","menu.view.zoomIn": "Zoom in","menu.view.zoomOut": "Zoom out",+ "modifyProject.frameRate": "Frame rate",+ "modifyProject.frameRateHint": "Fixed for the project's lifetime: every cut is quantised to this grid,\nand changing it would re-time the whole edit.",+ "modifyProject.frameRateValue": "{rate} fps · fixed",+ "modifyProject.height": "Height",+ "modifyProject.name": "Name",+ "modifyProject.save": "Save",+ "modifyProject.saving": "Saving...",+ "modifyProject.title": "Project details",+ "modifyProject.width": "Width",+ "preview.full": "Full",+ "preview.goToEnd": "Go to end",+ "preview.goToStart": "Go to start",+ "preview.half": "Half",+ "preview.nextFrame": "Next frame",+ "preview.nothingUnderPlayhead": "Nothing under the playhead",+ "preview.outputSize": "Output size: {ratio} · {width} x {height}",+ "preview.pause": "Pause (Space)",+ "preview.play": "Play (Space)",+ "preview.prevFrame": "Previous frame",+ "preview.qualityHint": "Preview quality: {label} ({ratio})",+ "preview.quarter": "Quarter",+ "rightPanel.adjust": "Adjust",+ "rightPanel.details": "Details",+ "rightPanel.effects": "Effects",+ "rightPanel.filters": "Filters",+ "rightPanel.text": "Text",+ "saveTemplate.namePlaceholder": "Template name",+ "saveTemplate.noSlots": "No media is marked as a slot, so this template opens as a ready-made project. Mark slots in the bin first if users should supply their own clips.",+ "saveTemplate.save": "Save template",+ "saveTemplate.saving": "Saving...",+ "saveTemplate.slots.one": "{count} slot will ask for the user's own media. Everything else - music, overlays, titles - is copied into the template.",+ "saveTemplate.slots.other": "{count} slots will ask for the user's own media. Everything else - music, overlays, titles - is copied into the template.",+ "saveTemplate.title": "Save as template","settings.about.blurb": "Local-first video editing. Media, models and renders stay on this machine.","settings.about.version": "Version {version}","settings.about.versionUnknown": "unknown",@@ -67,11 +246,124 @@"settings.transcriber.modelsHelp": "Bigger models transcribe better and slower. English-only variants beat the multilingual ones at the same size when the audio is English. The selected model is what Auto captions uses. Everything runs locally - nothing leaves this machine.","settings.transcriber.useModel": "Use {model}","settings.transcriber.useModelHint": "Use this model",+ "startScreen.allFilesFilter": "All files",+ "startScreen.allTemplates": "All templates",+ "startScreen.audioFilter": "Audio",+ "startScreen.change": "Change...",+ "startScreen.choose": "Choose...",+ "startScreen.chooseFolder": "Choose a folder",+ "startScreen.chooseMediaFor": "Choose media for \"{name}\"",+ "startScreen.create": "Create",+ "startScreen.creating": "Creating...",+ "startScreen.deleteTemplate": "Delete the template {name}",+ "startScreen.deleteTemplateHint": "Delete this template for good",+ "startScreen.folderNote": "The project folder is created now; the edit autosaves into it.",+ "startScreen.frameRate": "Frame rate",+ "startScreen.fromTemplate": "Start from a template",+ "startScreen.kindAudio": "audio",+ "startScreen.kindImage": "image",+ "startScreen.kindVideo": "video",+ "startScreen.location": "Location",+ "startScreen.locationTitle": "Where should this project live?",+ "startScreen.name": "Name",+ "startScreen.newProject": "New project",+ "startScreen.noSlots": "This template has no slots - it opens ready-made.",+ "startScreen.recent": "Recent",+ "startScreen.removeRecent": "Remove {name} from recents",+ "startScreen.removeRecentHint": "Remove from this list. The folder is left alone.",+ "startScreen.res1080p": "1080p",+ "startScreen.res4k": "4K",+ "startScreen.res720p": "720p",+ "startScreen.resVertical": "Vertical",+ "startScreen.resolution": "Resolution",+ "startScreen.settingsIntro": "These settings apply to the whole edit and cannot be changed later.",+ "startScreen.slotCount.one": "{count} slot",+ "startScreen.slotCount.other": "{count} slots",+ "startScreen.slotSeconds": "{kind} · {seconds}s on the timeline",+ "startScreen.slots": "Slots ({count})",+ "startScreen.slotsFilled": "Every slot is filled.",+ "startScreen.slotsMissing.one": "{count} slot still needs a clip.",+ "startScreen.slotsMissing.other": "{count} slots still need a clip.",+ "startScreen.templateIntro": "Pick a clip for each slot. The template's timing, music and effects stay as designed - {width} x {height} at {rate} fps.",+ "startScreen.untitled": "Untitled project",+ "startScreen.videoImagesFilter": "Video or images","status.engine": "engine {version}","status.engineUnavailable": "engine unavailable","status.saveFailed": "save failed","status.saved": "saved","status.saving": "saving...",+ "textPanel.addFontFile": "Add font file",+ "textPanel.alignCenter": "center",+ "textPanel.alignLeft": "left",+ "textPanel.alignRight": "right",+ "textPanel.bundled": "Bundled",+ "textPanel.centred": "centred",+ "textPanel.colour": "Colour",+ "textPanel.content": "Content",+ "textPanel.defaultName": "Text",+ "textPanel.dropShadow": "Drop shadow",+ "textPanel.dropShadowHint": "Keeps text readable over bright footage.",+ "textPanel.empty": "Select a text clip to style it.",+ "textPanel.fileMissing": "(file missing)",+ "textPanel.fill": "Fill",+ "textPanel.font": "Font",+ "textPanel.horizontal": "Horizontal",+ "textPanel.italic": "Italic",+ "textPanel.layout": "Layout",+ "textPanel.lineHeight": "Line height",+ "textPanel.none": "none",+ "textPanel.opacity": "Opacity",+ "textPanel.outline": "Outline",+ "textPanel.outlineColour": "Outline colour",+ "textPanel.placeholder": "Your text",+ "textPanel.plate": "Plate behind text",+ "textPanel.plateColour": "Plate colour",+ "textPanel.plateHint": "A solid block, for when a shadow is not enough.",+ "textPanel.position": "Position",+ "textPanel.removeFont": "Remove {name}",+ "textPanel.size": "Size",+ "textPanel.sizeOfHeight": "{value}% of height",+ "textPanel.system": "System",+ "textPanel.tracking": "Tracking",+ "textPanel.vertical": "Vertical",+ "textPanel.width": "Width",+ "textPanel.yours": "Yours",+ "timeline.addTrack": "Add track",+ "timeline.avTools": "Audio & video tools",+ "timeline.deleteClips": "Delete {count} clips (Del)",+ "timeline.deleteNamed": "Delete {name}",+ "timeline.deleteSelected": "Delete selected (Del)",+ "timeline.fit": "Fit to window (F)",+ "timeline.hideTrack": "Hide picture on this track",+ "timeline.merge": "Merge selected clips (M)",+ "timeline.mergeMustTouch": "Merged clips must touch, with no gap or overlap.",+ "timeline.mergeNeedTwo": "Select two or more clips to merge.",+ "timeline.mergeOutOfOrder": "These pieces are no longer in their original order.",+ "timeline.mergeSameFile": "Merged clips must come from the same file.",+ "timeline.mergeSameSpeed": "Merged clips must play at the same speed.",+ "timeline.mergeSameTrack": "Merged clips must be on the same track.",+ "timeline.muteTrack": "Mute this track",+ "timeline.newTimeline": "New timeline",+ "timeline.razorTool": "Razor tool (C)",+ "timeline.removeTrack": "Remove {name}",+ "timeline.removeTrackHint": "Remove {name} and its clips",+ "timeline.renameHint": "Double-click to rename",+ "timeline.selectTool": "Select tool (V)",+ "timeline.showTrack": "Show picture on this track",+ "timeline.snapping": "Snapping (N)",+ "timeline.split": "Split at playhead (Ctrl+B)",+ "timeline.switchTo": "Switch to {name}",+ "timeline.unmuteTrack": "Unmute this track",+ "timeline.zoomIn": "Zoom in",+ "timeline.zoomOut": "Zoom out",+ "titleBar.maximise": "Maximise",+ "titleBar.minimise": "Minimise",+ "titleBar.openSettings": "Open settings",+ "titleBar.restore": "Restore",+ "titleBar.switchDark": "Switch to dark",+ "titleBar.switchDarkAria": "Switch to dark theme",+ "titleBar.switchLight": "Switch to light",+ "titleBar.switchLightAria": "Switch to light theme","toast.effectNeedsClip": "Select a video or image clip on the timeline first","toast.projectDetailsSaved": "Project details saved","toast.projectSaved": "Project saved",diff --git a/desktop/src/locales/zh-CN.json b/desktop/src/locales/zh-CN.jsonnew file mode 100644index 00000000..2efa0301--- /dev/null+++ b/desktop/src/locales/zh-CN.json@@ -0,0 +1,375 @@+{+ "adjust.empty": "选择单个片段进行调整。",+ "adjust.fadeIn": "淡入",+ "adjust.fadeOut": "淡出",+ "adjust.fades": "淡入淡出",+ "adjust.level": "电平",+ "adjust.none": "无",+ "adjust.opacity": "不透明度",+ "adjust.pitchHint": "关闭时人声保持原调。开启是磁带式行为——更快也意味着更高。",+ "adjust.pitchToggle": "音调随速度变化",+ "adjust.positionX": "位置 X",+ "adjust.positionY": "位置 Y",+ "adjust.rate": "速率",+ "adjust.rotation": "旋转",+ "adjust.scale": "缩放",+ "adjust.silent": "静音",+ "adjust.speed": "速度",+ "adjust.speedHelp": "无论快慢,片段覆盖的素材相同,因此它在时间线上的长度会相应变化。",+ "adjust.transform": "变换",+ "adjust.transformHelp": "也可以在预览中直接拖动画面——四角缩放,上方手柄旋转。双击任意标签可重置,点击数值可直接输入。",+ "adjust.volume": "音量",+ "common.cancel": "取消",+ "common.close": "关闭",+ "common.export": "导出",+ "contextMenu.deleteClips.one": "删除",+ "contextMenu.deleteClips.other": "删除 {count} 个片段",+ "contextMenu.mergeClips.one": "合并片段",+ "contextMenu.mergeClips.other": "合并 {count} 个片段",+ "contextMenu.moveToPlayhead": "移动到播放头",+ "contextMenu.splitClips.one": "在播放头处分割",+ "contextMenu.splitClips.other": "在播放头处分割 {count} 个片段",+ "controls.resetHint": "双击重置",+ "controls.sliderValue": "{label} 数值",+ "dialog.addFont.filter": "字体",+ "dialog.addFont.title": "添加字体",+ "dialog.deleteTimeline.clipsLost.one": "此时间线上的 {count} 个片段将丢失。",+ "dialog.deleteTimeline.clipsLost.other": "此时间线上的 {count} 个片段将丢失。",+ "dialog.deleteTimeline.confirm": "删除时间线",+ "dialog.deleteTimeline.empty": "该时间线是空的;不影响其他内容。",+ "dialog.deleteTimeline.title": "删除“{name}”?",+ "effects.panel.addEffect": "添加特效",+ "effects.panel.applied": "已应用",+ "effects.panel.appliedHelp": "特效从上到下依次生效。眼睛图标可以在不丢失设置的情况下旁通——切换它来对比。",+ "effects.panel.bypass": "旁通 {name}",+ "effects.panel.duration": "时长",+ "effects.panel.empty": "选择视频或图片片段来添加特效。",+ "effects.panel.enable": "启用 {name}",+ "effects.panel.moveEarlier": "在链中前移",+ "effects.panel.moveLater": "在链中后移",+ "effects.panel.noPreceding": "没有片段在此片段开始处结束,因此该转场目前呈现为普通剪切。",+ "effects.panel.nothingToAdjust": "没有可调整的参数。",+ "effects.panel.remove": "移除 {name}",+ "effects.panel.transition": "转场",+ "effects.panel.transitionHelp": "进入此片段的剪切点上的转场。它需要前一个片段保持相接——移开后将呈现为普通剪切。",+ "error.fontUnreadable": "无法将 {file} 读取为字体。",+ "errorNotice.copied": "已复制",+ "errorNotice.copy": "复制错误信息",+ "errorNotice.dismiss": "关闭",+ "export.browse": "浏览",+ "export.clips.one": "{count} 个片段",+ "export.clips.other": "{count} 个片段",+ "export.contents": "内容",+ "export.done": "完成",+ "export.duration": "时长",+ "export.finished": "导出完成",+ "export.format": "格式",+ "export.frameOf": "第 {frame} 帧,共 {total} 帧",+ "export.mp4Filter": "MP4 视频",+ "export.nothing": "没有可导出的内容",+ "export.quality.balanced": "均衡",+ "export.quality.balancedHint": "默认",+ "export.quality.high": "高",+ "export.quality.highHint": "较大",+ "export.quality.small": "小",+ "export.quality.smallHint": "紧凑",+ "export.qualityTitle": "质量",+ "export.reveal": "在访达中显示",+ "export.saveTitle": "导出到",+ "export.saveTo": "保存到",+ "export.stageTitles": "正在绘制标题",+ "export.starting": "正在开始",+ "export.timeLeft": "剩余约 {duration}",+ "export.titles.one": "{count} 个标题",+ "export.titles.other": "{count} 个标题",+ "export.tryAgain": "重试",+ "filters.panel.applied": "已应用",+ "filters.panel.appliedHelp": "滤镜从上到下依次生效,顺序是听得出来的。眼睛图标可以在不丢失设置的情况下旁通——切换它来对比。",+ "filters.panel.bypass": "旁通 {name}",+ "filters.panel.clearSearch": "清除搜索",+ "filters.panel.empty": "选择单个片段来添加滤镜。",+ "filters.panel.emptyImage": "静态图片没有可过滤的音频。",+ "filters.panel.enable": "启用 {name}",+ "filters.panel.moveEarlier": "在链中前移",+ "filters.panel.moveLater": "在链中后移",+ "filters.panel.noMatches": "没有与“{query}”匹配的结果。",+ "filters.panel.remove": "移除 {name}",+ "filters.panel.searchPlaceholder": "搜索滤镜",+ "inspector.audio": "音频",+ "inspector.clip": "片段",+ "inspector.clips": "片段数",+ "inspector.codec": "编码",+ "inspector.contents": "内容",+ "inspector.duration": "时长",+ "inspector.end": "结束",+ "inspector.exact": "精确值",+ "inspector.folder": "文件夹",+ "inspector.inPoint": "入点",+ "inspector.media": "媒体数",+ "inspector.modify": "修改",+ "inspector.name": "名称",+ "inspector.output": "输出",+ "inspector.path": "路径",+ "inspector.project": "项目",+ "inspector.rate": "帧率",+ "inspector.size": "尺寸",+ "inspector.source": "来源",+ "inspector.start": "开始",+ "inspector.track": "轨道",+ "inspector.tracks": "轨道数",+ "inspector.unknown": "未知",+ "inspector.video": "视频",+ "mediaBin.addTitleHint": "在播放头处添加一个标题",+ "mediaBin.allFilesFilter": "所有文件",+ "mediaBin.allMedia": "所有媒体",+ "mediaBin.applyHint": "点击应用到所选片段",+ "mediaBin.audioFallback": "音频",+ "mediaBin.cardHint": "拖到轨道上,或双击添加到播放头处",+ "mediaBin.defaultTitle": "默认标题",+ "mediaBin.delete": "删除",+ "mediaBin.deleteTemplate": "删除模板 {name}",+ "mediaBin.deleteTemplateHint": "永久删除此模板",+ "mediaBin.dropHint": "将视频和音频文件拖放到窗口任意位置,或在上方粘贴路径。",+ "mediaBin.importMedia": "导入媒体",+ "mediaBin.importing": "导入中...",+ "mediaBin.kindAudio": "音频",+ "mediaBin.kindImages": "图片",+ "mediaBin.kindVideo": "视频",+ "mediaBin.markSlot": "将 {name} 标记为模板槽位",+ "mediaBin.markSlotHint": "将其设为模板槽位:保存的模板会在此处请求用户提供自己的媒体",+ "mediaBin.mediaFilter": "媒体",+ "mediaBin.myTemplates": "我的模板",+ "mediaBin.noTemplates": "还没有模板。先将媒体标记为槽位,再将此项目保存为模板——它会在这些槽位请求用户提供自己的片段。",+ "mediaBin.notAvailable": "暂不可用",+ "mediaBin.releaseToImport": "松开即可导入",+ "mediaBin.removeFromBin": "从素材箱中移除",+ "mediaBin.removeItem": "移除 {name}",+ "mediaBin.saveAsTemplate": "将此项目保存为模板",+ "mediaBin.selectedCount": "已选择 {count} 项——拖动其中任意一项可放置全部",+ "mediaBin.sizeStill": "{size} 静态图片",+ "mediaBin.slotBadge": "槽位",+ "mediaBin.slotCount.one": "{count} 个槽位",+ "mediaBin.slotCount.other": "{count} 个槽位",+ "mediaBin.soon": "敬请期待",+ "mediaBin.still": "静态",+ "mediaBin.tabEffects": "特效",+ "mediaBin.tabMedia": "媒体",+ "mediaBin.tabTemplates": "模板",+ "mediaBin.tabText": "文本",+ "mediaBin.tabTransitions": "转场",+ "mediaBin.titles": "标题",+ "mediaBin.unmarkSlot": "取消将 {name} 标记为模板槽位",+ "mediaBin.unmarkSlotHint": "不再是模板槽位",+ "mediaBin.useTemplateHint": "点击从此模板开始新项目",+ "mediaBin.videoEffects": "视频特效",+ "menu.clip.autoCaptions": "自动字幕",+ "menu.clip.detachAudio": "分离音频",+ "menu.clip.reattachAudio": "重新附加音频",+ "menu.clip.transcribing": "正在转录...",+ "menu.edit.deleteClips.one": "删除片段",+ "menu.edit.deleteClips.other": "删除 {count} 个片段",+ "menu.edit.disableSnapping": "关闭吸附",+ "menu.edit.enableSnapping": "开启吸附",+ "menu.edit.redo": "重做",+ "menu.edit.splitAtPlayhead": "在播放头处分割",+ "menu.edit.title": "编辑",+ "menu.edit.undo": "撤销",+ "menu.file.addSelected": "将所选添加到时间线",+ "menu.file.closeProject": "关闭项目",+ "menu.file.closeWindow": "关闭窗口",+ "menu.file.export": "导出...",+ "menu.file.save": "保存",+ "menu.file.saveAsTemplate": "保存为模板...",+ "menu.file.settings": "设置...",+ "menu.file.title": "文件",+ "menu.view.goToEnd": "跳到结尾",+ "menu.view.goToStart": "跳到开头",+ "menu.view.title": "视图",+ "menu.view.zoomIn": "放大",+ "menu.view.zoomOut": "缩小",+ "modifyProject.frameRate": "帧率",+ "modifyProject.frameRateHint": "在项目的整个生命周期中固定:每个剪切点都量化到此网格上,更改它会重新调整整个剪辑的时间。",+ "modifyProject.frameRateValue": "{rate} fps · 固定",+ "modifyProject.height": "高度",+ "modifyProject.name": "名称",+ "modifyProject.save": "保存",+ "modifyProject.saving": "保存中...",+ "modifyProject.title": "项目详情",+ "modifyProject.width": "宽度",+ "preview.full": "全分辨率",+ "preview.goToEnd": "转到结尾",+ "preview.goToStart": "转到开头",+ "preview.half": "二分之一",+ "preview.nextFrame": "下一帧",+ "preview.nothingUnderPlayhead": "播放头下没有内容",+ "preview.outputSize": "输出尺寸:{ratio} · {width} x {height}",+ "preview.pause": "暂停(空格)",+ "preview.play": "播放(空格)",+ "preview.prevFrame": "上一帧",+ "preview.qualityHint": "预览质量:{label}({ratio})",+ "preview.quarter": "四分之一",+ "rightPanel.adjust": "调整",+ "rightPanel.details": "详情",+ "rightPanel.effects": "特效",+ "rightPanel.filters": "滤镜",+ "rightPanel.text": "文本",+ "saveTemplate.namePlaceholder": "模板名称",+ "saveTemplate.noSlots": "没有媒体被标记为槽位,因此该模板会以现成项目的形式打开。如果希望用户提供自己的片段,请先在素材箱中标记槽位。",+ "saveTemplate.save": "保存模板",+ "saveTemplate.saving": "保存中...",+ "saveTemplate.slots.one": "{count} 个槽位将请求用户提供自己的媒体。其他一切——音乐、叠加层、标题——都会复制到模板中。",+ "saveTemplate.slots.other": "{count} 个槽位将请求用户提供自己的媒体。其他一切——音乐、叠加层、标题——都会复制到模板中。",+ "saveTemplate.title": "保存为模板",+ "settings.about.blurb": "本地优先的视频剪辑。媒体、模型和渲染都留在这台电脑上。",+ "settings.about.version": "版本 {version}",+ "settings.about.versionUnknown": "未知",+ "settings.general.engineNote": "来自引擎的部分文本仍以英文显示。",+ "settings.general.language": "语言",+ "settings.general.systemDefault": "系统默认({language})",+ "settings.tabs.about": "关于",+ "settings.tabs.general": "通用",+ "settings.tabs.transcriber": "转录器",+ "settings.title": "设置",+ "settings.transcriber.cancelDownload": "取消下载",+ "settings.transcriber.deleteModel": "删除 {model}",+ "settings.transcriber.deleteModelHint": "删除已下载的模型",+ "settings.transcriber.download": "下载",+ "settings.transcriber.downloadFirstHint": "请先下载",+ "settings.transcriber.engineMissing": "此开发构建中未找到转录引擎",+ "settings.transcriber.language": "语言",+ "settings.transcriber.languageAuto": "自动检测",+ "settings.transcriber.languageEnglish": "英语",+ "settings.transcriber.locate": "查找...",+ "settings.transcriber.locateFilter": "程序",+ "settings.transcriber.locateTitle": "查找 whisper-cli",+ "settings.transcriber.models": "模型",+ "settings.transcriber.modelsHelp": "模型越大,转录越准也越慢。音频为英语时,同等大小下纯英语模型胜过多语言模型。所选模型即“自动字幕”所用的模型。一切都在本地运行——任何内容都不会离开这台电脑。",+ "settings.transcriber.useModel": "使用 {model}",+ "settings.transcriber.useModelHint": "使用此模型",+ "startScreen.allFilesFilter": "所有文件",+ "startScreen.allTemplates": "所有模板",+ "startScreen.audioFilter": "音频",+ "startScreen.change": "更换...",+ "startScreen.choose": "选择...",+ "startScreen.chooseFolder": "选择一个文件夹",+ "startScreen.chooseMediaFor": "为“{name}”选择媒体",+ "startScreen.create": "创建",+ "startScreen.creating": "创建中...",+ "startScreen.deleteTemplate": "删除模板 {name}",+ "startScreen.deleteTemplateHint": "永久删除此模板",+ "startScreen.folderNote": "项目文件夹现在就会创建;剪辑会自动保存到其中。",+ "startScreen.frameRate": "帧率",+ "startScreen.fromTemplate": "从模板开始",+ "startScreen.kindAudio": "音频",+ "startScreen.kindImage": "图片",+ "startScreen.kindVideo": "视频",+ "startScreen.location": "位置",+ "startScreen.locationTitle": "这个项目应该放在哪里?",+ "startScreen.name": "名称",+ "startScreen.newProject": "新建项目",+ "startScreen.noSlots": "此模板没有槽位——它以现成的形式打开。",+ "startScreen.recent": "最近",+ "startScreen.removeRecent": "从最近列表中移除 {name}",+ "startScreen.removeRecentHint": "从此列表中移除。文件夹本身不受影响。",+ "startScreen.res1080p": "1080p",+ "startScreen.res4k": "4K",+ "startScreen.res720p": "720p",+ "startScreen.resVertical": "竖屏",+ "startScreen.resolution": "分辨率",+ "startScreen.settingsIntro": "这些设置适用于整个剪辑,以后无法更改。",+ "startScreen.slotCount.one": "{count} 个槽位",+ "startScreen.slotCount.other": "{count} 个槽位",+ "startScreen.slotSeconds": "{kind} · 时间线上 {seconds} 秒",+ "startScreen.slots": "槽位({count})",+ "startScreen.slotsFilled": "所有槽位都已填充。",+ "startScreen.slotsMissing.one": "还有 {count} 个槽位需要片段。",+ "startScreen.slotsMissing.other": "还有 {count} 个槽位需要片段。",+ "startScreen.templateIntro": "为每个槽位选择一个片段。模板的时序、音乐和效果保持原样——{width} x {height},{rate} fps。",+ "startScreen.untitled": "未命名项目",+ "startScreen.videoImagesFilter": "视频或图片",+ "status.engine": "引擎 {version}",+ "status.engineUnavailable": "引擎不可用",+ "status.saveFailed": "保存失败",+ "status.saved": "已保存",+ "status.saving": "正在保存...",+ "textPanel.addFontFile": "添加字体文件",+ "textPanel.alignCenter": "居中",+ "textPanel.alignLeft": "左对齐",+ "textPanel.alignRight": "右对齐",+ "textPanel.bundled": "内置",+ "textPanel.centred": "居中",+ "textPanel.colour": "颜色",+ "textPanel.content": "内容",+ "textPanel.defaultName": "文本",+ "textPanel.dropShadow": "阴影",+ "textPanel.dropShadowHint": "让文字在明亮画面上保持可读。",+ "textPanel.empty": "选择文本片段来设置样式。",+ "textPanel.fileMissing": "(文件缺失)",+ "textPanel.fill": "填充",+ "textPanel.font": "字体",+ "textPanel.horizontal": "水平",+ "textPanel.italic": "斜体",+ "textPanel.layout": "布局",+ "textPanel.lineHeight": "行高",+ "textPanel.none": "无",+ "textPanel.opacity": "不透明度",+ "textPanel.outline": "描边",+ "textPanel.outlineColour": "描边颜色",+ "textPanel.placeholder": "输入文字",+ "textPanel.plate": "文字底板",+ "textPanel.plateColour": "底板颜色",+ "textPanel.plateHint": "一块实心色块,用于阴影不够时。",+ "textPanel.position": "位置",+ "textPanel.removeFont": "移除 {name}",+ "textPanel.size": "大小",+ "textPanel.sizeOfHeight": "高度的 {value}%",+ "textPanel.system": "系统",+ "textPanel.tracking": "字距",+ "textPanel.vertical": "垂直",+ "textPanel.width": "宽度",+ "textPanel.yours": "自定义",+ "timeline.addTrack": "添加轨道",+ "timeline.avTools": "音频与视频工具",+ "timeline.deleteClips": "删除 {count} 个片段(Del)",+ "timeline.deleteNamed": "删除 {name}",+ "timeline.deleteSelected": "删除所选(Del)",+ "timeline.fit": "适应窗口(F)",+ "timeline.hideTrack": "隐藏此轨道的画面",+ "timeline.merge": "合并所选片段(M)",+ "timeline.mergeMustTouch": "合并的片段必须相接,不能有间隙或重叠。",+ "timeline.mergeNeedTwo": "选择两个或更多片段来合并。",+ "timeline.mergeOutOfOrder": "这些片段已不再是原始顺序。",+ "timeline.mergeSameFile": "合并的片段必须来自同一个文件。",+ "timeline.mergeSameSpeed": "合并的片段必须以相同速度播放。",+ "timeline.mergeSameTrack": "合并的片段必须在同一条轨道上。",+ "timeline.muteTrack": "静音此轨道",+ "timeline.newTimeline": "新建时间线",+ "timeline.razorTool": "剃刀工具(C)",+ "timeline.removeTrack": "移除 {name}",+ "timeline.removeTrackHint": "移除 {name} 及其片段",+ "timeline.renameHint": "双击重命名",+ "timeline.selectTool": "选择工具(V)",+ "timeline.showTrack": "显示此轨道的画面",+ "timeline.snapping": "吸附(N)",+ "timeline.split": "在播放头处分割(Ctrl+B)",+ "timeline.switchTo": "切换到 {name}",+ "timeline.unmuteTrack": "取消静音此轨道",+ "timeline.zoomIn": "放大",+ "timeline.zoomOut": "缩小",+ "titleBar.maximise": "最大化",+ "titleBar.minimise": "最小化",+ "titleBar.openSettings": "打开设置",+ "titleBar.restore": "还原",+ "titleBar.switchDark": "切换到深色",+ "titleBar.switchDarkAria": "切换到深色主题",+ "titleBar.switchLight": "切换到浅色",+ "titleBar.switchLightAria": "切换到浅色主题",+ "toast.effectNeedsClip": "请先在时间线上选择一个视频或图像片段",+ "toast.projectDetailsSaved": "项目详情已保存",+ "toast.projectSaved": "项目已保存",+ "toast.saveFailed": "保存失败:{message}",+ "toast.templateSaved": "已保存模板“{name}”",+ "toast.transitionAdded": "{transition} 已加入剪辑",+ "toast.transitionNeedsClip": "请先选择切点之后的入场片段",+ "toast.transitionNeedsCut": "没有片段在此片段开始处结束——转场需要一个切点"+}