Skip to content

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

feat(editor): "fit the clip" is an action, not a state

Etienne Lescota1d10acb94d2
diff --git a/src/components/ai-edition/NewEditorShell.module.css b/src/components/ai-edition/NewEditorShell.module.css
index 92f2790b0..414d39b8a 100644
--- a/src/components/ai-edition/NewEditorShell.module.css
+++ b/src/components/ai-edition/NewEditorShell.module.css
@@ -987,24 +987,7 @@
color: var(--fg-2);
margin: 4px var(--sp-4) 8px;
}
-/* ─── row action + its menu ───────────────────────────────────── */
-/* Sits where a Toggle would, and reads as the current answer rather than as on/off. */
-.rowAction {
- display: inline-flex;
- align-items: center;
- gap: 5px;
- padding: 5px 8px;
- border: 1px solid var(--border);
- border-radius: 8px;
- background: var(--bg);
- color: var(--fg-2);
- font: 500 var(--fs-app-sm)/1 var(--font-body);
- font-variant-numeric: tabular-nums;
- cursor: pointer;
- transition: border-color 150ms ease, color 150ms ease;
-}
-.rowAction:hover:not(:disabled) { border-color: var(--brand); color: var(--fg); }
-.rowAction:disabled { cursor: default; opacity: 0.5; }
+/* ─── action menu (a button's list of things it could do) ─────── */
.actionMenu {
min-width: 216px;
padding: 6px;
@@ -1018,13 +1001,6 @@
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
-.actionMenuTitle {
- margin: 4px 8px 6px;
- font: 600 11px/1 var(--font-body);
- text-transform: uppercase;
- letter-spacing: 0.04em;
- color: var(--muted);
-}
.actionMenuRow {
display: flex;
align-items: baseline;
@@ -1039,7 +1015,6 @@
text-align: left;
}
.actionMenuRow:hover { background: var(--surface-2); }
-.actionMenuRow.isActive { background: color-mix(in oklab, var(--brand), transparent 82%); }
/* Resolution leads: it is the thing a user recognises about their own footage. */
.actionMenuMain { font: 600 12.5px var(--font-display); font-variant-numeric: tabular-nums; }
/* The ratio token second, for whoever does read them — `64:27` means nothing alone. */
@@ -1050,8 +1025,6 @@
font-variant-numeric: tabular-nums;
color: var(--meta);
}
-.actionMenuReset { border-top: 1px solid var(--border-soft); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; }
-.actionMenuReset .actionMenuMain { font-weight: 500; color: var(--fg-2); }
/* Caveat under a control, when the control is true but not the whole story. */
.paneHint {
diff --git a/src/components/ai-edition/RightPanes.tsx b/src/components/ai-edition/RightPanes.tsx
index b3c93af7e..efab27541 100644
--- a/src/components/ai-edition/RightPanes.tsx
+++ b/src/components/ai-edition/RightPanes.tsx
@@ -36,7 +36,7 @@ import { toast } from "sonner";
import defaultCursorPreviewUrl from "@/assets/cursors/Cursor=Default.svg";
import GradientEditor, { type GradientEditorState } from "@/components/ui/gradient-editor";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
-import { useScopedT } from "@/contexts/I18nContext";
+import { useI18n, useScopedT } from "@/contexts/I18nContext";
import { collectNativeFormats } from "@/lib/ai-edition/document/outputFormat";
import type {
AxcutAsset,
@@ -47,7 +47,6 @@ import type {
} from "@/lib/ai-edition/schema";
import {
AUDIO_GAIN_DB_LIMIT,
- DEFAULT_EDITOR_SETTINGS,
type EditorSettingsPatch,
type EditorSettingsSnapshot,
} from "@/lib/ai-edition/store/editorSettings";
@@ -1497,27 +1496,31 @@ export function fillsFrame(
}
/**
- * The patch behind the toggle.
+ * The patch behind the action.
*
- * Turning it OFF restores the shipped defaults rather than whatever the user had before:
- * "before" would have to be stored somewhere, and a hidden slot that only one control writes
- * is the kind of state that rots. Predictable beats clever here — and every value it restores
- * is one slider away.
- *
- * `aspectRatio` is deliberately absent from the OFF patch. Turning the background back on does
- * not mean the user wanted their output reframed; the three frame values alone bring it back.
+ * There is no inverse. It was a toggle once, and the OFF branch restored the shipped defaults
+ * — which was already a guess dressed as a memory, since nothing stored what the user had
+ * before. Undo does that job properly, and the three sliders it writes sit directly below the
+ * button, so "put it back" was never missing; it was being modelled twice.
*/
-export function fillFramePatch(on: boolean, nativeToken: AspectRatio): EditorSettingsPatch {
- if (!on) {
- return {
- padding: DEFAULT_EDITOR_SETTINGS.padding,
- borderRadius: DEFAULT_EDITOR_SETTINGS.borderRadius,
- shadowIntensity: DEFAULT_EDITOR_SETTINGS.shadowIntensity,
- };
- }
+export function fitClipPatch(nativeToken: AspectRatio): EditorSettingsPatch {
return { padding: 0, borderRadius: 0, shadowIntensity: 0, aspectRatio: nativeToken };
}
+/**
+ * "1 clip" / "2 clips", picked through Intl.PluralRules rather than `count === 1`.
+ *
+ * The catalog has no plural machinery — `translate` interpolates and nothing else — so the two
+ * forms are two keys. Choosing between them by CLDR category instead of by equality is what
+ * makes French say "0 clip" and not "0 clips", and it degrades honestly for the locales whose
+ * rules need more than two forms rather than pretending English's rules are universal.
+ */
+function pluralKey(locale: string, count: number): "effects.fitClipOne" | "effects.fitClipMany" {
+ return new Intl.PluralRules(locale).select(count) === "one"
+ ? "effects.fitClipOne"
+ : "effects.fitClipMany";
+}
+
// ─── Video Effects ─────────────────────────────────────────────────
/**
@@ -1548,15 +1551,14 @@ export function VideoEffectsPane() {
// contain-fits (see compositeLayout.ts), so anything not in the chosen shape keeps its
// bars. The switch is honest about the SETTINGS; without this it would also be read as a
// claim about the picture, and be wrong on every mixed timeline.
- const filledFormat = frameIsFilled
- ? nativeFormats.find((f) => f.token === settings.aspectRatio)
- : undefined;
const clipsStillFramed = useMemo(() => {
const filled = nativeFormats.find((f) => f.token === settings.aspectRatio);
const total = nativeFormats.reduce((n, f) => n + f.clipCount, 0);
return total - (filled?.clipCount ?? 0);
}, [nativeFormats, settings.aspectRatio]);
- const [fillMenuOpen, setFillMenuOpen] = useState(false);
+ const [fitMenuOpen, setFitMenuOpen] = useState(false);
+ const { locale } = useI18n();
+ const clipCountLabel = (count: number) => ts(pluralKey(locale, count), { count });
// Le rayon natif = rayon de base de la fixture (~24px @1920) × cette échelle. Diviser la
// valeur px de l'UI par ce même rayon de base fait que le coin natif ≈ les px affichés
@@ -1567,19 +1569,15 @@ export function VideoEffectsPane() {
// un effet de montage ici ne poussait rien tant que ce panneau precis n'avait pas
// ete ouvert. Les handlers par controle ci-dessous poussent toujours leurs diffs.
- const pushFramePatch = (patch: EditorSettingsPatch) => {
+ const applyFitClip = (token: AspectRatio) => {
+ const patch = fitClipPatch(token);
void set(patch);
if (isNativeCompositorActive()) {
- setNativeParam("padding", (patch.padding ?? 0) / 100);
- setNativeParam("roundness", (patch.borderRadius ?? 0) / NATIVE_SCREEN_BASE_RADIUS_PX);
- setNativeParam("shadow", patch.shadowIntensity ?? 0);
+ setNativeParam("padding", 0);
+ setNativeParam("roundness", 0);
+ setNativeParam("shadow", 0);
}
};
- /** Fill to a shape the user named. */
- const applyFillFrame = (token: AspectRatio) => pushFramePatch(fillFramePatch(true, token));
- /** Fill to the majority shape, or restore — the no-decision-to-make path. */
- const toggleFillFrame = (on: boolean) =>
- pushFramePatch(fillFramePatch(on, nativeFormats[0]?.token ?? settings.aspectRatio));
return (
<Pane
@@ -1595,94 +1593,65 @@ export function VideoEffectsPane() {
{/* #84: "how do I turn the background off". The honest answer was four settings in
three places, so nobody found it. This is that answer as one control.
- An ACTION, not a switch. A switch has room for one outcome, and on a timeline
- with several shapes there are several — one per shape — with no way for a
- boolean to say which it took. It took the majority, silently. Worse, the shapes
- it was choosing between were shown as raw ratio tokens: `16:9` is readable,
- `683:384` and `64:27` are not, and ten of them do not fit a row of chips.
+ An ACTION, not a state. It was a switch first, and a switch has room for one
+ outcome while a timeline with several shapes has one per shape — so it took the
+ majority silently. Making the choice explicit as a row of chips then failed on
+ its own terms: the chips read `683:384` and `64:27`, and ten of them do not fit.
- So the button says what is filling the frame right now, and opens a list when
- there is a choice to make — the same shape the "edit clip" rail button has.
- Rows lead with the RESOLUTION, which users recognise, and carry their clip
- count so the trade is visible. The list scrolls, so ten shapes cost no more
- than two. */}
- <div className={styles.paneRow}>
- <span className={styles.label}>{ts("effects.fillFrame")}</span>
- <Popover open={fillMenuOpen} onOpenChange={setFillMenuOpen}>
- <PopoverTrigger asChild>
- <button
- type="button"
- className={styles.rowAction}
- disabled={!hasDocument || nativeFormats.length === 0}
- onClick={(e) => {
- // One shape means no decision to delegate: act, do not ask.
- if (nativeFormats.length <= 1) {
- e.preventDefault();
- toggleFillFrame(!frameIsFilled);
- }
- }}
- >
- {filledFormat
- ? `${filledFormat.width} × ${filledFormat.height}`
- : ts("effects.fillFrameOff")}
- {nativeFormats.length > 1 ? <ChevronDown size={11} /> : null}
- </button>
- </PopoverTrigger>
- <PopoverContent
- align="end"
- sideOffset={6}
- collisionPadding={12}
- animated={false}
- className="w-auto border-0 bg-transparent p-0 shadow-none"
+ So: a button that does the thing, and a list to pick from when there is more
+ than one thing it could do — the shape the "edit clip" rail button already has.
+ Rows lead with the RESOLUTION, which is what a user recognises about their own
+ footage. Nothing here reports state: what the action did is visible in the three
+ sliders below it, which is where it lives. */}
+ <Popover open={fitMenuOpen} onOpenChange={setFitMenuOpen}>
+ <PopoverTrigger asChild>
+ <button
+ type="button"
+ className={styles.uploadBtn}
+ disabled={!hasDocument || nativeFormats.length === 0}
+ onClick={(e) => {
+ // One shape means no decision to delegate: act, do not ask.
+ if (nativeFormats.length <= 1) {
+ e.preventDefault();
+ applyFitClip(nativeFormats[0].token);
+ }
+ }}
>
- <div
- className={styles.actionMenu}
- role="menu"
- aria-label={ts("effects.fillFrameChoose")}
- >
- <p className={styles.actionMenuTitle}>{ts("effects.fillFrameChoose")}</p>
- {nativeFormats.map((format) => (
- <button
- type="button"
- role="menuitem"
- key={format.token}
- className={`${styles.actionMenuRow}${
- frameIsFilled && format.token === settings.aspectRatio
- ? ` ${styles.isActive}`
- : ""
- }`}
- onClick={() => {
- setFillMenuOpen(false);
- applyFillFrame(format.token);
- }}
- >
- <span className={styles.actionMenuMain}>
- {format.width} × {format.height}
- </span>
- <span className={styles.actionMenuMeta}>{format.token}</span>
- <span className={styles.actionMenuCount}>{format.clipCount}</span>
- </button>
- ))}
- {frameIsFilled ? (
- <button
- type="button"
- role="menuitem"
- className={`${styles.actionMenuRow} ${styles.actionMenuReset}`}
- onClick={() => {
- setFillMenuOpen(false);
- toggleFillFrame(false);
- }}
- >
- <span className={styles.actionMenuMain}>{ts("effects.fillFrameRestore")}</span>
- </button>
- ) : null}
- </div>
- </PopoverContent>
- </Popover>
- </div>
+ {nativeFormats.length > 1 ? ts("effects.fitAClip") : ts("effects.fitClip")}
+ </button>
+ </PopoverTrigger>
+ <PopoverContent
+ align="center"
+ sideOffset={6}
+ collisionPadding={12}
+ animated={false}
+ className="w-auto border-0 bg-transparent p-0 shadow-none"
+ >
+ <div className={styles.actionMenu} role="menu" aria-label={ts("effects.fitAClip")}>
+ {nativeFormats.map((format) => (
+ <button
+ type="button"
+ role="menuitem"
+ key={format.token}
+ className={styles.actionMenuRow}
+ onClick={() => {
+ setFitMenuOpen(false);
+ applyFitClip(format.token);
+ }}
+ >
+ <span className={styles.actionMenuMain}>
+ {format.width} × {format.height}
+ </span>
+ <span className={styles.actionMenuMeta}>{format.token}</span>
+ <span className={styles.actionMenuCount}>{clipCountLabel(format.clipCount)}</span>
+ </button>
+ ))}
+ </div>
+ </PopoverContent>
+ </Popover>
{frameIsFilled && clipsStillFramed > 0 ? (
<div className={styles.paneHint} role="note">
- {ts("effects.fillFrameMixed")}
+ {ts("effects.fitClipMixed")}
</div>
) : null}
<div className={styles.sliderGrid}>
diff --git a/src/components/ai-edition/fillFrame.test.ts b/src/components/ai-edition/fillFrame.test.ts
index 78011e5bc..1c1e37dbb 100644
--- a/src/components/ai-edition/fillFrame.test.ts
+++ b/src/components/ai-edition/fillFrame.test.ts
@@ -5,7 +5,7 @@
import { describe, expect, it } from "vitest";
import type { AspectRatio } from "@/utils/aspectRatioUtils";
-import { fillFramePatch, fillsFrame } from "./RightPanes";
+import { fillsFrame, fitClipPatch } from "./RightPanes";
const FILLED = {
padding: 0,
@@ -57,9 +57,9 @@ describe("fillsFrame reads the four settings, not a stored flag", () => {
});
});
-describe("fillFramePatch", () => {
+describe("fitClipPatch", () => {
it("zeroes the three frame values and adopts the footage's shape", () => {
- expect(fillFramePatch(true, "16:10")).toEqual({
+ expect(fitClipPatch("16:10")).toEqual({
padding: 0,
borderRadius: 0,
shadowIntensity: 0,
@@ -67,21 +67,19 @@ describe("fillFramePatch", () => {
});
});
- it("round-trips: what it turns on, fillsFrame reads as on", () => {
- const patched = { ...FILLED, ...fillFramePatch(true, "16:10") };
- expect(fillsFrame(patched, NATIVE)).toBe(true);
+ it("round-trips: what it applies, fillsFrame reads as filled", () => {
+ expect(fillsFrame({ ...FILLED, ...fitClipPatch("16:10") }, NATIVE)).toBe(true);
});
- it("restores the shipped defaults when switched off", () => {
- const off = fillFramePatch(false, "16:10");
- expect(off.padding).toBeGreaterThan(0);
- expect(off.borderRadius).toBeGreaterThan(0);
- expect(off.shadowIntensity).toBeGreaterThan(0);
- });
-
- it("leaves the aspect ratio alone when switched off", () => {
- // Wanting the background back is not asking for the output to be reframed, and the
- // three frame values alone bring it back.
- expect(fillFramePatch(false, "16:10")).not.toHaveProperty("aspectRatio");
+ it("has no inverse, deliberately", () => {
+ // It was a toggle, and its OFF branch restored the shipped defaults — a guess dressed
+ // as a memory, since nothing stored what the user actually had. Undo does that job,
+ // and the three sliders it writes sit right below the button.
+ expect(Object.keys(fitClipPatch("16:10")).sort()).toEqual([
+ "aspectRatio",
+ "borderRadius",
+ "padding",
+ "shadowIntensity",
+ ]);
});
});
diff --git a/src/components/ai-edition/fillFrameShapes.test.tsx b/src/components/ai-edition/fillFrameShapes.test.tsx
index 258b699a3..930cb5cdc 100644
--- a/src/components/ai-edition/fillFrameShapes.test.tsx
+++ b/src/components/ai-edition/fillFrameShapes.test.tsx
@@ -67,17 +67,16 @@ beforeEach(() => {
});
afterEach(cleanup);
-describe("a mixed timeline gets a shape to choose, not a shape imposed", () => {
- it("names the current fill by RESOLUTION, not by ratio token", () => {
- // `16:9` is readable; `683:384` and `64:27` are not. What a user recognises about
- // their own footage is its resolution, so that is what the control says.
+describe("fitting a clip is an action, and a choice only when there is one", () => {
+ it("labels the button for the single-shape case and acts without asking", () => {
mount(documentWithShapes([[1920, 1080]]));
- expect(screen.getByRole("button", { name: /1920 × 1080/ })).toBeInTheDocument();
+ fireEvent.click(screen.getByRole("button", { name: "Fit the clip" }));
+ expect(screen.queryByRole("menu")).not.toBeInTheDocument();
});
- it("offers every distinct shape, with the clip count behind each", () => {
+ it("asks which clip when the timeline holds more than one shape", () => {
// Five landscape clips and two portrait inserts: picking the majority silently would
- // mean the portrait ones can never be made to fill.
+ // mean the portrait ones can never be fitted.
mount(
documentWithShapes([
[1920, 1080],
@@ -89,23 +88,33 @@ describe("a mixed timeline gets a shape to choose, not a shape imposed", () => {
[1080, 1920],
]),
);
- fireEvent.click(screen.getByRole("button", { name: /1920 × 1080/ }));
+ fireEvent.click(screen.getByRole("button", { name: "Fit a clip" }));
const menu = screen.getByRole("menu");
- expect(within(menu).getByRole("menuitem", { name: /1920 × 1080.*5/ })).toBeInTheDocument();
- expect(within(menu).getByRole("menuitem", { name: /1080 × 1920.*2/ })).toBeInTheDocument();
+ // Resolution leads — `683:384` and `64:27` mean nothing to a user, `1920 × 1080` does.
+ expect(
+ within(menu).getByRole("menuitem", { name: /1920 × 1080.*5 clips/ }),
+ ).toBeInTheDocument();
+ expect(
+ within(menu).getByRole("menuitem", { name: /1080 × 1920.*2 clips/ }),
+ ).toBeInTheDocument();
});
- it("offers a way back out of the menu it opened", () => {
+ it('counts one clip as "1 clip"', () => {
mount(
documentWithShapes([
+ [1920, 1080],
[1920, 1080],
[1080, 1920],
]),
);
- fireEvent.click(screen.getByRole("button", { name: /1920 × 1080/ }));
+ fireEvent.click(screen.getByRole("button", { name: "Fit a clip" }));
+ const menu = screen.getByRole("menu");
expect(
- within(screen.getByRole("menu")).getByRole("menuitem", { name: "Restore the frame" }),
+ within(menu).getByRole("menuitem", { name: /1080 × 1920.*1 clip$/ }),
+ ).toBeInTheDocument();
+ expect(
+ within(menu).getByRole("menuitem", { name: /1920 × 1080.*2 clips/ }),
).toBeInTheDocument();
});
@@ -121,18 +130,16 @@ describe("a mixed timeline gets a shape to choose, not a shape imposed", () => {
);
});
- it("asks nothing when every clip is the same shape — the button just acts", () => {
+ it("collapses same-shape clips to one entry, labelled with the biggest", () => {
mount(
documentWithShapes([
[1920, 1080],
[3840, 2160],
]),
);
- // 1920x1080 and 3840x2160 are both 16:9, so they collapse to ONE shape — labelled with
- // the biggest representative, the same rule the ratio menu uses so the label shows the
- // best resolution available. One shape means no menu and no caveat.
- fireEvent.click(screen.getByRole("button", { name: /3840 × 2160/ }));
- expect(screen.queryByRole("menu")).not.toBeInTheDocument();
+ // Both are 16:9, so there is one shape and nothing to arbitrate — and the ratio menu's
+ // rule applies: the label shows the best resolution available.
+ expect(screen.getByRole("button", { name: "Fit the clip" })).toBeInTheDocument();
expect(screen.queryByRole("note")).not.toBeInTheDocument();
});
});
diff --git a/src/i18n/locales/ar/settings.json b/src/i18n/locales/ar/settings.json
index 66fe5098c..be871d263 100644
--- a/src/i18n/locales/ar/settings.json
+++ b/src/i18n/locales/ar/settings.json
@@ -75,11 +75,11 @@
"roundness": "الاستدارة",
"padding": "المسافة البادئة",
"frame": "الإطار",
- "fillFrame": "ملء الإطار",
- "fillFrameOff": "مُعطَّل",
- "fillFrameChoose": "اختر ما يملأ الإطار",
- "fillFrameRestore": "استعادة الإطار",
- "fillFrameMixed": "المقاطع ذات الشكل المختلف لا تزال تُظهر الخلفية.",
+ "fitClip": "ملاءمة المقطع",
+ "fitAClip": "ملاءمة مقطع",
+ "fitClipOne": "مقطع واحد",
+ "fitClipMany": "{{count}} مقاطع",
+ "fitClipMixed": "المقاطع ذات الشكل المختلف لا تزال تُظهر الخلفية.",
"motion": "الحركة",
"help": "تنسيق إطار التسجيل: ضبابية الخلفية، والظل، وضبابية الحركة، واستدارة الزوايا، والحشو حول الفيديو."
},
diff --git a/src/i18n/locales/en/settings.json b/src/i18n/locales/en/settings.json
index 4c526baf2..97d733d38 100644
--- a/src/i18n/locales/en/settings.json
+++ b/src/i18n/locales/en/settings.json
@@ -81,11 +81,11 @@
"roundness": "Roundness",
"padding": "Padding",
"frame": "Frame",
- "fillFrame": "Fill frame",
- "fillFrameOff": "Off",
- "fillFrameChoose": "Choose what fills the frame",
- "fillFrameRestore": "Restore the frame",
- "fillFrameMixed": "Clips in another shape still show the background.",
+ "fitClip": "Fit the clip",
+ "fitAClip": "Fit a clip",
+ "fitClipOne": "{{count}} clip",
+ "fitClipMany": "{{count}} clips",
+ "fitClipMixed": "Clips in another shape still show the background.",
"motion": "Motion",
"help": "Frame styling for the recording: background blur, drop shadow, motion blur, corner radius, and padding around the video."
},
diff --git a/src/i18n/locales/es/settings.json b/src/i18n/locales/es/settings.json
index 14a7b88fb..616f49229 100644
--- a/src/i18n/locales/es/settings.json
+++ b/src/i18n/locales/es/settings.json
@@ -74,11 +74,11 @@
"roundness": "Redondez",
"padding": "Relleno",
"frame": "Marco",
- "fillFrame": "Llenar el marco",
- "fillFrameOff": "Desactivado",
- "fillFrameChoose": "Elige qué llena el marco",
- "fillFrameRestore": "Restaurar el marco",
- "fillFrameMixed": "Los clips con otra forma siguen mostrando el fondo.",
+ "fitClip": "Ajustar al clip",
+ "fitAClip": "Ajustar a un clip",
+ "fitClipOne": "{{count}} clip",
+ "fitClipMany": "{{count}} clips",
+ "fitClipMixed": "Los clips con otra forma siguen mostrando el fondo.",
"motion": "Movimiento",
"on": "activado",
"help": "Estilo del marco de la grabación: desenfoque de fondo, sombra, desenfoque de movimiento, radio de esquinas y margen alrededor del vídeo."
diff --git a/src/i18n/locales/fr/settings.json b/src/i18n/locales/fr/settings.json
index e88161a9b..bbfda1c70 100644
--- a/src/i18n/locales/fr/settings.json
+++ b/src/i18n/locales/fr/settings.json
@@ -74,11 +74,11 @@
"roundness": "Arrondi",
"padding": "Marge",
"frame": "Cadre",
- "fillFrame": "Plein cadre",
- "fillFrameOff": "Désactivé",
- "fillFrameChoose": "Choisir ce qui remplit le cadre",
- "fillFrameRestore": "Rétablir le cadre",
- "fillFrameMixed": "Les clips d'une autre forme affichent encore le fond.",
+ "fitClip": "Ajuster au clip",
+ "fitAClip": "Ajuster à un clip",
+ "fitClipOne": "{{count}} clip",
+ "fitClipMany": "{{count}} clips",
+ "fitClipMixed": "Les clips d'une autre forme affichent encore le fond.",
"motion": "Mouvement",
"on": "activé",
"help": "Mise en forme du cadre de l'enregistrement : flou d'arrière-plan, ombre portée, flou de mouvement, arrondi des coins et marge autour de la vidéo."
diff --git a/src/i18n/locales/it/settings.json b/src/i18n/locales/it/settings.json
index e5c41dfd8..58d453759 100644
--- a/src/i18n/locales/it/settings.json
+++ b/src/i18n/locales/it/settings.json
@@ -75,11 +75,11 @@
"roundness": "Arrotondamento",
"padding": "Spaziatura",
"frame": "Cornice",
- "fillFrame": "Riempi la cornice",
- "fillFrameOff": "Disattivato",
- "fillFrameChoose": "Scegli cosa riempie la cornice",
- "fillFrameRestore": "Ripristina la cornice",
- "fillFrameMixed": "Le clip con un'altra forma mostrano ancora lo sfondo.",
+ "fitClip": "Adatta alla clip",
+ "fitAClip": "Adatta a una clip",
+ "fitClipOne": "{{count}} clip",
+ "fitClipMany": "{{count}} clip",
+ "fitClipMixed": "Le clip con un'altra forma mostrano ancora lo sfondo.",
"motion": "Movimento",
"help": "Stile della cornice della registrazione: sfocatura dello sfondo, ombra, sfocatura di movimento, raggio degli angoli e margine attorno al video."
},
diff --git a/src/i18n/locales/ja-JP/settings.json b/src/i18n/locales/ja-JP/settings.json
index 7d79d20c2..241776ed7 100644
--- a/src/i18n/locales/ja-JP/settings.json
+++ b/src/i18n/locales/ja-JP/settings.json
@@ -74,11 +74,11 @@
"roundness": "丸み",
"padding": "余白",
"frame": "フレーム",
- "fillFrame": "フレームいっぱい",
- "fillFrameOff": "オフ",
- "fillFrameChoose": "フレームを埋める対象を選択",
- "fillFrameRestore": "フレームを元に戻す",
- "fillFrameMixed": "別の形状のクリップには背景が残ります。",
+ "fitClip": "クリップに合わせる",
+ "fitAClip": "クリップを選んで合わせる",
+ "fitClipOne": "{{count}} クリップ",
+ "fitClipMany": "{{count}} クリップ",
+ "fitClipMixed": "別の形状のクリップには背景が残ります。",
"motion": "モーション",
"on": "オン",
"help": "録画フレームのスタイル設定: 背景ぼかし、ドロップシャドウ、モーションブラー、角丸、動画まわりの余白。"
diff --git a/src/i18n/locales/ko-KR/settings.json b/src/i18n/locales/ko-KR/settings.json
index 52f9f8933..24f779f43 100644
--- a/src/i18n/locales/ko-KR/settings.json
+++ b/src/i18n/locales/ko-KR/settings.json
@@ -75,11 +75,11 @@
"roundness": "모서리 둥글기",
"padding": "여백",
"frame": "프레임",
- "fillFrame": "프레임 채우기",
- "fillFrameOff": "끄기",
- "fillFrameChoose": "프레임을 채울 대상 선택",
- "fillFrameRestore": "프레임 되돌리기",
- "fillFrameMixed": "다른 비율의 클립에는 배경이 그대로 남습니다.",
+ "fitClip": "클립에 맞추기",
+ "fitAClip": "클립을 선택해 맞추기",
+ "fitClipOne": "{{count}}개 클립",
+ "fitClipMany": "{{count}}개 클립",
+ "fitClipMixed": "다른 비율의 클립에는 배경이 그대로 남습니다.",
"motion": "모션",
"help": "녹화 프레임 스타일: 배경 흐림, 그림자, 모션 블러, 모서리 둥글기, 영상 주변 여백."
},
diff --git a/src/i18n/locales/pt-BR/settings.json b/src/i18n/locales/pt-BR/settings.json
index 1ed47a38b..c6d6b1774 100644
--- a/src/i18n/locales/pt-BR/settings.json
+++ b/src/i18n/locales/pt-BR/settings.json
@@ -75,11 +75,11 @@
"roundness": "Arredondamento",
"padding": "Espaçamento",
"frame": "Moldura",
- "fillFrame": "Preencher a moldura",
- "fillFrameOff": "Desativado",
- "fillFrameChoose": "Escolha o que preenche a moldura",
- "fillFrameRestore": "Restaurar a moldura",
- "fillFrameMixed": "Clipes com outro formato ainda mostram o fundo.",
+ "fitClip": "Ajustar ao clipe",
+ "fitAClip": "Ajustar a um clipe",
+ "fitClipOne": "{{count}} clipe",
+ "fitClipMany": "{{count}} clipes",
+ "fitClipMixed": "Clipes com outro formato ainda mostram o fundo.",
"motion": "Movimento",
"help": "Estilo do quadro da gravação: desfoque de fundo, sombra, desfoque de movimento, raio dos cantos e margem em volta do vídeo."
},
diff --git a/src/i18n/locales/ru/settings.json b/src/i18n/locales/ru/settings.json
index 8ed1d6886..92b95002c 100644
--- a/src/i18n/locales/ru/settings.json
+++ b/src/i18n/locales/ru/settings.json
@@ -75,11 +75,11 @@
"roundness": "Скругление",
"padding": "Отступ",
"frame": "Рамка",
- "fillFrame": "Во весь кадр",
- "fillFrameOff": "Выключено",
- "fillFrameChoose": "Выберите, чем заполнить кадр",
- "fillFrameRestore": "Вернуть рамку",
- "fillFrameMixed": "Клипы другой формы по-прежнему показывают фон.",
+ "fitClip": "Подогнать под клип",
+ "fitAClip": "Подогнать под клип",
+ "fitClipOne": "{{count}} клип",
+ "fitClipMany": "{{count}} клипов",
+ "fitClipMixed": "Клипы другой формы по-прежнему показывают фон.",
"motion": "Движение",
"help": "Оформление кадра записи: размытие фона, тень, размытие движения, скругление углов и отступ вокруг видео."
},
diff --git a/src/i18n/locales/tr/settings.json b/src/i18n/locales/tr/settings.json
index 0b4e0b4bc..4c3f3d6ec 100644
--- a/src/i18n/locales/tr/settings.json
+++ b/src/i18n/locales/tr/settings.json
@@ -74,11 +74,11 @@
"roundness": "Yuvarlaklık",
"padding": "Dolgu",
"frame": "Çerçeve",
- "fillFrame": "Çerçeveyi doldur",
- "fillFrameOff": "Kapalı",
- "fillFrameChoose": "Çerçeveyi neyin dolduracağını seçin",
- "fillFrameRestore": "Çerçeveyi geri yükle",
- "fillFrameMixed": "Başka bir orandaki klipler arka planı göstermeye devam eder.",
+ "fitClip": "Klibe sığdır",
+ "fitAClip": "Bir klibe sığdır",
+ "fitClipOne": "{{count}} klip",
+ "fitClipMany": "{{count}} klip",
+ "fitClipMixed": "Başka bir orandaki klipler arka planı göstermeye devam eder.",
"motion": "Hareket",
"on": "açık",
"help": "Kayıt çerçevesinin biçimi: arka plan bulanıklığı, gölge, hareket bulanıklığı, köşe yuvarlaklığı ve videonun çevresindeki boşluk."
diff --git a/src/i18n/locales/vi/settings.json b/src/i18n/locales/vi/settings.json
index 729af6b18..0fb34db7a 100644
--- a/src/i18n/locales/vi/settings.json
+++ b/src/i18n/locales/vi/settings.json
@@ -74,11 +74,11 @@
"roundness": "Độ bo tròn",
"padding": "Phần đệm",
"frame": "Khung",
- "fillFrame": "Lấp đầy khung",
- "fillFrameOff": "Tắt",
- "fillFrameChoose": "Chọn nội dung lấp đầy khung",
- "fillFrameRestore": "Khôi phục khung",
- "fillFrameMixed": "Các clip có tỉ lệ khác vẫn hiển thị nền.",
+ "fitClip": "Vừa khít clip",
+ "fitAClip": "Vừa khít một clip",
+ "fitClipOne": "{{count}} clip",
+ "fitClipMany": "{{count}} clip",
+ "fitClipMixed": "Các clip có tỉ lệ khác vẫn hiển thị nền.",
"motion": "Chuyển động",
"on": "bật",
"help": "Kiểu khung của bản ghi: làm mờ nền, đổ bóng, mờ chuyển động, bo góc và khoảng đệm quanh video."
diff --git a/src/i18n/locales/zh-CN/settings.json b/src/i18n/locales/zh-CN/settings.json
index a3c522359..11bbfb65f 100644
--- a/src/i18n/locales/zh-CN/settings.json
+++ b/src/i18n/locales/zh-CN/settings.json
@@ -74,11 +74,11 @@
"roundness": "圆角",
"padding": "内边距",
"frame": "画框",
- "fillFrame": "填满画框",
- "fillFrameOff": "关闭",
- "fillFrameChoose": "选择填满画框的内容",
- "fillFrameRestore": "恢复画框",
- "fillFrameMixed": "其他比例的片段仍会显示背景。",
+ "fitClip": "适配片段",
+ "fitAClip": "选择要适配的片段",
+ "fitClipOne": "{{count}} 个片段",
+ "fitClipMany": "{{count}} 个片段",
+ "fitClipMixed": "其他比例的片段仍会显示背景。",
"motion": "运动",
"on": "开",
"help": "录制画面的边框样式:背景模糊、投影、运动模糊、圆角半径以及视频四周的内边距。"
diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.json
index 89f31bcb8..b3fa2eff7 100644
--- a/src/i18n/locales/zh-TW/settings.json
+++ b/src/i18n/locales/zh-TW/settings.json
@@ -75,11 +75,11 @@
"roundness": "圓角",
"padding": "內邊距",
"frame": "外框",
- "fillFrame": "填滿外框",
- "fillFrameOff": "關閉",
- "fillFrameChoose": "選擇填滿外框的內容",
- "fillFrameRestore": "還原外框",
- "fillFrameMixed": "其他比例的片段仍會顯示背景。",
+ "fitClip": "符合片段",
+ "fitAClip": "選擇要符合的片段",
+ "fitClipOne": "{{count}} 個片段",
+ "fitClipMany": "{{count}} 個片段",
+ "fitClipMixed": "其他比例的片段仍會顯示背景。",
"motion": "動態",
"on": "開",
"help": "錄製畫面的外框樣式:背景模糊、陰影、動態模糊、圓角半徑,以及影片四周的內距。"