Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

fix(web): preserve initial translation editor settings

Leggett824c52112661
diff --git a/apps/desktop/release-notes/v3.2.9.md b/apps/desktop/release-notes/v3.2.9.md
index cc0dbf75..a0807140 100644
--- a/apps/desktop/release-notes/v3.2.9.md
+++ b/apps/desktop/release-notes/v3.2.9.md
@@ -7,4 +7,5 @@
- Refined shared model selectors, model-specific controls, and voice library interactions across Creator workspaces.
- Updated the default OpenAI image model to gpt-image-2 and migrated saved gpt-image-1 settings while preserving independently configured models.
- Fixed parallel tool calls from Chat-compatible providers being combined when streamed chunks omit tool indexes.
+- Fixed initial subtitle editor settings being reset when switching panels and completed translations for subtitle timing and dubbing setup controls.
- Updated dependencies to address high-severity security advisories.
diff --git a/apps/web/src/app/App.test.tsx b/apps/web/src/app/App.test.tsx
index c32d8f19..6103adb9 100644
--- a/apps/web/src/app/App.test.tsx
+++ b/apps/web/src/app/App.test.tsx
@@ -1,3 +1,4 @@
+import { selectOption } from '../test/select-option.js';
import { act, cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react';
import { StrictMode } from 'react';
import { userEvent } from '@testing-library/user-event';
@@ -165,8 +166,8 @@ describe('App', () => {
await user.click(await screen.findByRole('button', { name: /AI 服务/ }));
await user.click(await screen.findByRole('button', { name: '配置 Agent' }));
await user.click(screen.getByRole('button', { name: '本地模式' }));
- await user.selectOptions(await screen.findByRole('combobox', { name: '供应商' }), 'openai');
- expect(screen.getByLabelText('模型名称')).toHaveValue('gpt-5.6-sol');
+ selectOption(await screen.findByRole('combobox', { name: '供应商' }), 'openai');
+ expect(screen.getByLabelText('模型名称')).toHaveValue('gpt-test');
await user.type(screen.getByLabelText('API Key'), 'secret');
await user.click(screen.getByRole('button', { name: '保存并开始使用' }));
await waitFor(() => {
@@ -1469,13 +1470,11 @@ describe('App', () => {
'https://www.youtube.com/watch?v=test'
);
await user.click(screen.getByRole('button', { name: '继续' }));
- await user.click(screen.getByRole('button', { name: '继续' }));
await user.click(within(
screen.getByRole('region', { name: '视频翻译操作区' })
).getByRole('button', { name: '开始翻译' }));
expect(screen.getByRole('heading', { name: '视频翻译项目' })).toBeInTheDocument();
- expect(screen.getByRole('tab', { name: '作品' })).toHaveAttribute('aria-selected', 'true');
- expect(screen.getByRole('button', { name: '深度编辑' })).toBeInTheDocument();
+ expect(screen.getByRole('textbox', { name: '横屏字幕 1' })).toBeInTheDocument();
expect(screen.queryByRole('textbox', { name: '输入任务' })).not.toBeInTheDocument();
});
@@ -1524,7 +1523,6 @@ describe('App', () => {
});
await user.upload(screen.getByLabelText('Upload a local video'), file);
await user.click(screen.getByRole('button', { name: 'Continue' }));
- await user.click(screen.getByRole('button', { name: 'Continue' }));
await user.click(within(
screen.getByRole('region', { name: 'Video translation workspace' })
).getByRole('button', { name: 'Start translation' }));
@@ -8038,7 +8036,7 @@ describe('App', () => {
expect(screen.getByRole('button', { name: '选择访问权限 完全访问权限' })).toBeInTheDocument();
await user.click(screen.getByRole('button', { name: '设置' }));
- await user.selectOptions(
+ selectOption(
await screen.findByRole('combobox', { name: '默认权限' }),
'workspace-write'
);
@@ -8138,7 +8136,7 @@ describe('App', () => {
expect(fetchCalls.some(call => call.url.includes('purpose=conversation'))).toBe(true);
});
- await user.selectOptions(
+ selectOption(
screen.getByRole('combobox', { name: '默认权限' }),
'danger-full-access'
);
diff --git a/apps/web/src/features/dashboard/DashboardPage.test.tsx b/apps/web/src/features/dashboard/DashboardPage.test.tsx
index 33da72b9..97c345a8 100644
--- a/apps/web/src/features/dashboard/DashboardPage.test.tsx
+++ b/apps/web/src/features/dashboard/DashboardPage.test.tsx
@@ -40,6 +40,24 @@ beforeEach(() => {
Object.defineProperty(URL, 'revokeObjectURL', { configurable: true, value: vi.fn() });
});
+
+async function translateTestVideo(id = 'test') {
+ openBlankWorkspace('视频翻译', '空白视频翻译');
+ fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
+ target: { value: `https://www.youtube.com/watch?v=${id}` }
+ });
+ fireEvent.click(screen.getByRole('button', { name: '继续' }));
+ await startVideoTranslation();
+}
+
+function openTranslationPanel(name: string) {
+ fireEvent.click(screen.getByRole('button', { name }));
+}
+
+async function waitForSubtitleAutosave() {
+ await waitFor(() => expect(screen.queryByLabelText('有未保存的字幕修改')).not.toBeInTheDocument(), { timeout: 3000 });
+}
+
function openSubtitleEditor() {
const entry = screen.queryByRole('button', { name: '深度编辑' });
if (entry) fireEvent.click(entry);
@@ -47,20 +65,6 @@ function openSubtitleEditor() {
afterEach(() => vi.unstubAllGlobals());
-function createSubtitlePreviewService() {
- class PreviewURL extends URL {
- static createObjectURL = vi.fn(() => 'blob:subtitle-preview');
- static revokeObjectURL = vi.fn();
- }
- vi.stubGlobal('URL', PreviewURL);
- return {
- ...createInMemoryCreatorService(),
- openSubtitlePreview: vi.fn(async () => new Response(new Blob(['png'], { type: 'image/png' }), {
- headers: { 'content-type': 'image/png' }
- }))
- };
-}
-
describe('Creator initial session recovery', () => {
it('automatically opens an existing project after the first snapshot fails', async () => {
const service = createInMemoryCreatorService();
@@ -174,6 +178,14 @@ function createInMemoryCreatorService(): CreatorWebService {
return { job };
},
applyAction,
+ uploadSourceVideo: vi.fn(async (jobId, { file }) => {
+ const current = jobs.get(jobId)!;
+ const artifact = translationArtifact(current, { kind: 'source_video', version: 1, fileName: file.name });
+ const job = { ...current, revision: current.revision + 1,
+ state: { ...current.state, sourceVideoArtifactId: artifact.id }, artifacts: [...current.artifacts, artifact] };
+ jobs.set(jobId, job);
+ return { job, artifact, deduplicated: false };
+ }),
openArtifact: vi.fn(async (_jobId: string) => new Response(new Blob(['artifact']))),
runAgentTurn: vi.fn(async () => {
throw new Error('Agent turns require an explicit test fixture');
@@ -310,7 +322,7 @@ function createTtsServices(options?: {
config.tts.openai.defaultVoiceId = voiceId;
const getConfig = vi.fn(async () => ({
config: structuredClone(config),
- configuredCredentials: []
+ configuredCredentials: ['tts.openai.apiKey']
}));
const getTtsVoices = vi.fn(async () => ({
provider: 'openai' as const,
@@ -1005,7 +1017,7 @@ describe('DashboardPage', () => {
it('opens the video translation workspace and keeps its result in place', async () => {
const onSelectPrompt = vi.fn();
- const creatorService = createSubtitlePreviewService();
+ const creatorService = createInMemoryCreatorService();
render(
<DashboardPage
onSelectPrompt={onSelectPrompt}
@@ -1045,156 +1057,79 @@ describe('DashboardPage', () => {
expect(screen.getByRole('heading', { name: '设置翻译语言' })).toBeInTheDocument();
expect(screen.getByRole('combobox', { name: '源语言' })).toHaveValue('en');
expect(screen.getByRole('combobox', { name: '翻译为' })).toHaveValue('zh_cn');
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- expect(screen.getByRole('region', { name: '视频与字幕' })).toBeInTheDocument();
- expect(screen.queryByRole('combobox', { name: '字幕字体' })).not.toBeInTheDocument();
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
+ expect(screen.queryByRole('switch', { name: '合成字幕视频' })).not.toBeInTheDocument();
+ expect(screen.getByLabelText('任务摘要')).toHaveTextContent('English → 简体中文');
+ await startVideoTranslation();
fireEvent.click(screen.getByRole('button', { name: '自定义样式' }));
changeControl(screen.getByRole('combobox', { name: '字幕字体' }), { target: { value: 'rounded' } });
changeControl(screen.getByRole('combobox', { name: '字幕大小' }), { target: { value: 'large' } });
fireEvent.click(screen.getByRole('button', { name: '选择译文颜色' }));
fireEvent.click(screen.getByRole('button', { name: '#FFE45C' }));
fireEvent.keyDown(screen.getByRole('button', { name: '#FFE45C' }), { key: 'Escape' });
- const subtitlePreview = screen.getByRole('region', { name: '字幕样式预览' });
- expect(await within(subtitlePreview).findByRole('img', { name: '字幕样式预览' })).toHaveAttribute('src', 'blob:subtitle-preview');
- expect(creatorService.openSubtitlePreview).toHaveBeenLastCalledWith(expect.objectContaining({
- bilingual: true,
- subtitlePosition: 'top',
- translationText: '这是一段译文字幕',
- originalText: '这是一段原文字幕',
- subtitleStyle: expect.objectContaining({ fontPreset: 'rounded', fontSize: 'large', primaryColor: '#FFE45C' })
- }), { signal: expect.any(AbortSignal) });
- expect(screen.getByLabelText('任务摘要')).toHaveTextContent('English → 简体中文');
- expect(screen.getByLabelText('任务摘要')).toHaveTextContent('圆体 · 粗体 · 大 · #FFE45C');
- expect(screen.getByLabelText('任务摘要')).toHaveClass('video-translation-summary', 'creator-task-summary');
- expect(screen.getByLabelText('任务摘要').parentElement).toHaveClass('creator-collaboration-task-summary');
- expect(screen.getByRole('region', { name: '视频翻译操作区' })).not.toContainElement(screen.getByLabelText('任务摘要'));
- expect(screen.getByRole('complementary', { name: 'OpenCreator' })).toContainElement(screen.getByLabelText('任务摘要'));
+ expect(screen.getByRole('combobox', { name: '字幕字体' })).toHaveValue('rounded');
+ expect(screen.getByRole('combobox', { name: '字幕大小' })).toHaveValue('large');
fireEvent.click(screen.getByRole('button', { name: '完成' }));
- await startVideoTranslation();
expect(onSelectPrompt).not.toHaveBeenCalled();
expect(screen.getByRole('heading', { name: '视频翻译项目' })).toBeInTheDocument();
- expect(screen.getByRole('tab', { name: '作品' })).toHaveAttribute('aria-selected', 'true');
+ expect(screen.getByRole('textbox', { name: '横屏字幕 1' })).toBeInTheDocument();
expect(screen.getByText('项目 V1')).toBeInTheDocument();
openSubtitleEditor();
- expect(screen.getByRole('button', { name: '保存字幕' })).toBeDisabled();
- expect(screen.getByRole('button', { name: '返回项目' })).toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: '保存字幕' })).not.toBeInTheDocument();
+ expect(within(screen.getByRole('region', { name: '视频翻译项目产出' })).getByRole('button', { name: '返回' })).toBeInTheDocument();
expect(screen.queryByText(/之前的版本仍可查看/)).not.toBeInTheDocument();
- expect(screen.queryByRole('region', { name: '生成新版本' })).not.toBeInTheDocument();
+ expect(screen.getByRole('button', { name: '合成视频' })).toBeInTheDocument();
expect(screen.queryByRole('button', { name: '生成新版本' })).not.toBeInTheDocument();
});
- it('shows the translation steps and reopens completed steps', async () => {
- const creatorService = createSubtitlePreviewService();
- render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={creatorService} />);
+ it('shows the two translation steps and reopens completed steps', async () => {
+ render(<DashboardPage onSelectPrompt={vi.fn()} />);
openBlankWorkspace('视频翻译', '空白视频翻译');
-
const steps = screen.getByRole('navigation', { name: '翻译流程' });
+ expect(within(steps).getAllByRole('button')).toHaveLength(2);
expect(within(steps).getByRole('button', { name: '1 添加素材' })).toHaveAttribute('aria-current', 'step');
expect(within(steps).getByRole('button', { name: '2 翻译设置' })).toBeDisabled();
- expect(within(steps).getByRole('button', { name: '3 视频与字幕' })).toBeDisabled();
- expect(within(steps).getAllByRole('button')).toHaveLength(3);
-
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=steps-test' }
- });
+ fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), { target: { value: 'https://www.youtube.com/watch?v=steps-test' } });
fireEvent.click(screen.getByRole('button', { name: '继续' }));
+ changeControl(screen.getByRole('combobox', { name: '翻译为' }), { target: { value: 'ja' } });
expect(within(steps).getByRole('button', { name: /翻译设置$/ })).toHaveAttribute('aria-current', 'step');
- fireEvent.click(screen.getByRole('button', { name: '在下' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- expect(within(steps).getByRole('button', { name: /视频与字幕$/ })).toHaveAttribute('aria-current', 'step');
- expect(screen.getByLabelText('任务摘要')).toBeInTheDocument();
- expect(within(screen.getByRole('region', { name: '视频翻译操作区' })).getByRole('button', { name: '开始翻译' })).toBeInTheDocument();
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
- const bottomTranslationPreview = screen.getByRole('region', { name: '字幕样式预览' });
- expect(await within(bottomTranslationPreview).findByRole('img', { name: '字幕样式预览' })).toBeVisible();
- expect(creatorService.openSubtitlePreview).toHaveBeenLastCalledWith(expect.objectContaining({
- bilingual: true, subtitlePosition: 'bottom'
- }), { signal: expect.any(AbortSignal) });
- fireEvent.click(screen.getByRole('button', { name: '自定义样式' }));
- expect(screen.getByRole('button', { name: '选择原文颜色' })).toBeInTheDocument();
- fireEvent.click(screen.getByRole('button', { name: '完成' }));
-
- fireEvent.click(within(steps).getByRole('button', { name: /翻译设置$/ }));
- fireEvent.click(screen.getByRole('switch', { name: '双语字幕' }));
- fireEvent.click(within(steps).getByRole('button', { name: /视频与字幕$/ }));
- const translationOnlyPreview = screen.getByRole('region', { name: '字幕样式预览' });
- expect(await within(translationOnlyPreview).findByRole('img', { name: '字幕样式预览' })).toBeVisible();
- expect(creatorService.openSubtitlePreview).toHaveBeenLastCalledWith(expect.objectContaining({
- bilingual: false, subtitlePosition: 'bottom'
- }), { signal: expect.any(AbortSignal) });
- fireEvent.click(screen.getByRole('button', { name: '自定义样式' }));
- expect(screen.queryByRole('button', { name: '选择原文颜色' })).not.toBeInTheDocument();
- expect(screen.getByRole('button', { name: '选择译文颜色' })).toBeInTheDocument();
- fireEvent.click(screen.getByRole('button', { name: '完成' }));
- expect(screen.getByLabelText('任务摘要')).toBeInTheDocument();
-
+ expect(screen.queryByRole('button', { name: '继续' })).not.toBeInTheDocument();
+ fireEvent.click(within(steps).getByRole('button', { name: /添加素材$/ }));
+ expect(screen.getByRole('img', { name: 'YouTube 视频缩略图' })).toHaveAttribute('src', 'https://i.ytimg.com/vi/steps-test/hqdefault.jpg');
fireEvent.click(within(steps).getByRole('button', { name: /翻译设置$/ }));
- expect(screen.getByRole('heading', { name: '设置翻译语言' })).toBeInTheDocument();
- fireEvent.click(screen.getByRole('switch', { name: '双语字幕' }));
- fireEvent.click(within(steps).getByRole('button', { name: /视频与字幕$/ }));
- expect(screen.getByRole('region', { name: '视频与字幕' })).toBeInTheDocument();
- fireEvent.click(screen.getByRole('button', { name: '自定义样式' }));
- expect(screen.getByRole('button', { name: '选择原文颜色' })).toBeInTheDocument();
+ expect(screen.getByRole('combobox', { name: '翻译为' })).toHaveValue('ja');
+ expect(screen.getByLabelText('任务摘要')).toHaveTextContent('English → 日本語');
+ expect(within(screen.getByRole('region', { name: '视频翻译操作区' })).getByRole('button', { name: '开始翻译' })).toBeEnabled();
});
- it('reveals video settings together and preserves them when rendering is toggled off', () => {
- render(<DashboardPage onSelectPrompt={vi.fn()} />);
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=conditional-video-settings' }
- });
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
-
- const rendering = screen.getByRole('switch', { name: '合成字幕视频' });
- expect(rendering).toHaveAttribute('aria-checked', 'false');
- expect(screen.queryByRole('combobox', { name: '输出画幅' })).not.toBeInTheDocument();
- expect(screen.queryByRole('combobox', { name: '字幕字体' })).not.toBeInTheDocument();
- expect(screen.queryByRole('region', { name: '字幕样式预览' })).not.toBeInTheDocument();
- expect(screen.queryByRole('switch', { name: '生成目标语言配音' })).not.toBeInTheDocument();
- fireEvent.click(rendering);
- expect(screen.getByRole('combobox', { name: '输出画幅' }).closest('.video-translation-option-block')).toBeNull();
+ it('preserves style and output settings when switching editor panels', async () => {
+ render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={createInMemoryCreatorService()} />);
+ await translateTestVideo();
fireEvent.click(screen.getByRole('button', { name: '自定义样式' }));
changeControl(screen.getByRole('combobox', { name: '字幕字体' }), { target: { value: 'rounded' } });
fireEvent.click(screen.getByRole('button', { name: '完成' }));
- changeControl(screen.getByRole('combobox', { name: '输出画幅' }), { target: { value: 'vertical' } });
+ openTranslationPanel('视频输出');
+ fireEvent.click(screen.getByRole('radio', { name: /9:16/ }));
fireEvent.change(screen.getByRole('textbox', { name: /竖屏主标题/ }), { target: { value: '保留标题' } });
- expect(screen.getByRole('region', { name: '字幕样式预览' })).toHaveAttribute('data-ratio', '9:16');
-
- fireEvent.click(rendering);
- expect(screen.queryByRole('combobox', { name: '输出画幅' })).not.toBeInTheDocument();
- expect(screen.queryByRole('combobox', { name: '字幕字体' })).not.toBeInTheDocument();
- expect(screen.queryByRole('region', { name: '字幕样式预览' })).not.toBeInTheDocument();
- expect(screen.getByLabelText('任务摘要')).not.toHaveTextContent('字幕样式');
- expect(screen.getByLabelText('任务摘要')).not.toHaveTextContent('配音');
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
+ openTranslationPanel('字幕样式');
fireEvent.click(screen.getByRole('button', { name: '自定义样式' }));
expect(screen.getByRole('combobox', { name: '字幕字体' })).toHaveValue('rounded');
fireEvent.click(screen.getByRole('button', { name: '完成' }));
- expect(screen.getByRole('combobox', { name: '输出画幅' })).toHaveValue('vertical');
+ openTranslationPanel('视频输出');
+ expect(screen.getByRole('radio', { name: /9:16/ })).toBeChecked();
expect(screen.getByRole('textbox', { name: /竖屏主标题/ })).toHaveValue('保留标题');
- expect(screen.getByLabelText('任务摘要')).toHaveTextContent('字幕样式');
- expect(screen.getByLabelText('任务摘要')).toHaveTextContent('圆体');
+ expect(screen.getByRole('button', { name: '项目 V1' })).toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: '项目 V2' })).not.toBeInTheDocument();
});
- it('uses the selected vertical output ratio for the subtitle preview', () => {
- render(<DashboardPage onSelectPrompt={vi.fn()} />);
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=vertical-preview' }
- });
-
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
- changeControl(screen.getByRole('combobox', { name: '输出画幅' }), { target: { value: 'vertical' } });
- fireEvent.click(within(screen.getByRole('navigation', { name: '翻译流程' })).getByRole('button', {
- name: /视频与字幕$/
- }));
-
- expect(screen.getByRole('region', { name: '字幕样式预览' })).toHaveAttribute('data-ratio', '9:16');
+ it('uses the selected vertical output ratio for the subtitle preview', async () => {
+ render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={createInMemoryCreatorService()} />);
+ await translateTestVideo();
+ openTranslationPanel('视频输出');
+ fireEvent.click(screen.getByRole('radio', { name: /9:16/ }));
+ openTranslationPanel('字幕样式');
+ fireEvent.click(screen.getByRole('button', { name: '自定义样式' }));
+ expect(screen.getByRole('region', { name: '同步视频预览' }).querySelector('.video-result-player-frame')).toHaveAttribute('data-ratio', '9:16');
});
it('submits public video link analysis from the dashboard', async () => {
@@ -1369,123 +1304,77 @@ describe('DashboardPage', () => {
));
});
- it('edits and saves generated subtitles without leaving the result workspace', async () => {
- render(<DashboardPage onSelectPrompt={vi.fn()} />);
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=test' }
- });
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- await startVideoTranslation();
-
- openSubtitleEditor();
+ it('automatically saves generated subtitle edits without leaving the result workspace', async () => {
+ const service = createInMemoryCreatorService();
+ const applyAction = vi.spyOn(service, 'applyAction');
+ render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={service} />);
+ await translateTestVideo();
const firstSubtitle = screen.getByRole('textbox', { name: '横屏字幕 1' });
fireEvent.change(firstSubtitle, { target: { value: 'A manually edited subtitle.' } });
expect(screen.getByLabelText('有未保存的字幕修改')).toBeInTheDocument();
- const subtitleEditor = screen.getByRole('list', { name: '横屏字幕内容' });
- expect(subtitleEditor).toContainElement(firstSubtitle);
- fireEvent.click(screen.getByRole('button', { name: '保存字幕' }));
-
- expect(await screen.findByRole('button', { name: '项目 V1' })).toBeInTheDocument();
- expect(screen.getByRole('textbox', { name: '横屏字幕 1' })).toBeInTheDocument();
- expect(screen.getAllByRole('status').some(status => (
- status.textContent?.includes('横屏字幕已保存,项目仍为 V1')
- ))).toBe(true);
- expect(screen.getByRole('button', { name: '保存字幕' })).toBeDisabled();
+ expect(screen.getByRole('list', { name: '横屏字幕内容' })).toContainElement(firstSubtitle);
+ await waitForSubtitleAutosave();
+ expect(applyAction).toHaveBeenCalledWith(expect.any(String), expect.objectContaining({
+ action: 'edit-subtitle', input: expect.objectContaining({ baseResultVersion: 1, preserveResultVersion: true,
+ cues: expect.arrayContaining([expect.objectContaining({ id: 1, text: 'A manually edited subtitle.' })]) })
+ }));
+ expect(screen.getByRole('textbox', { name: '横屏字幕 1' })).toHaveValue('A manually edited subtitle.');
+ expect(screen.getByRole('button', { name: '项目 V1' })).toBeInTheDocument();
expect(screen.queryByRole('button', { name: '项目 V2' })).not.toBeInTheDocument();
});
- it('requires confirmation before subtitle changes create a new output version', async () => {
- render(<DashboardPage onSelectPrompt={vi.fn()} />);
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=test' }
- });
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- await startVideoTranslation();
-
- openSubtitleEditor();
- fireEvent.change(screen.getByRole('textbox', { name: '横屏字幕 2' }), {
- target: { value: 'Welcome back to OpenCreator.' }
- });
- expect(screen.getByRole('textbox', { name: '横屏字幕 2' })).toHaveValue('Welcome back to OpenCreator.');
- expect(screen.getByLabelText('有未保存的字幕修改')).toBeInTheDocument();
-
- fireEvent.click(screen.getByRole('button', { name: '保存并生成 V2' }));
- const regenerateConfirmation = screen.getByRole('group', { name: '确认生成新版本' });
- expect(regenerateConfirmation).toHaveTextContent('确认生成 V2');
- expect(regenerateConfirmation).toHaveTextContent('更新字幕、成片');
- fireEvent.click(within(regenerateConfirmation).getByRole('button', { name: '确认生成 V2' }));
-
+ it('requires confirmation before retranslating edited subtitles into a new version', async () => {
+ const service = createInMemoryCreatorService();
+ const applyAction = vi.spyOn(service, 'applyAction');
+ render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={service} />);
+ await translateTestVideo();
+ fireEvent.change(screen.getByRole('textbox', { name: '横屏字幕 2' }), { target: { value: 'Welcome back to OpenCreator.' } });
+ await waitForSubtitleAutosave();
+ openTranslationPanel('任务设置');
+ changeControl(screen.getByRole('combobox', { name: '翻译为' }), { target: { value: 'ja' } });
+ fireEvent.click(screen.getByRole('button', { name: '重新翻译字幕' }));
+ const confirmation = screen.getByRole('group', { name: '确认生成新版本' });
+ expect(confirmation).toHaveTextContent('人工修改保留在历史版本中');
+ expect(applyAction.mock.calls.filter(([, request]) => request.action === 'run-stage')).toHaveLength(1);
+ fireEvent.click(within(confirmation).getByRole('button', { name: '确认重新翻译字幕' }));
const versionTrigger = await screen.findByRole('button', { name: '项目 V2' });
expect(versionTrigger).toHaveAttribute('aria-haspopup', 'menu');
- expect(versionTrigger.querySelector('.video-result-version-chevron')).toBeInTheDocument();
- openSubtitleEditor();
- expect(screen.getByRole('textbox', { name: '横屏字幕 2' })).toHaveValue('Welcome back to OpenCreator.');
+ fireEvent.click(versionTrigger);
+ fireEvent.click(within(screen.getByRole('menu')).getByText('项目 V1').closest('button')!);
+ expect(await screen.findByRole('textbox', { name: '横屏字幕 2' })).toHaveValue('Welcome back to OpenCreator.');
});
- it('saves manual subtitle edits while generating a new version', async () => {
- render(<DashboardPage onSelectPrompt={vi.fn()} />);
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=test' }
- });
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- await startVideoTranslation();
-
- openSubtitleEditor();
- fireEvent.change(screen.getByRole('textbox', { name: '横屏字幕 1' }), {
- target: { value: 'The manually revised opening.' }
- });
- fireEvent.click(screen.getByRole('button', { name: '保存并生成 V2' }));
-
- const confirmation = screen.getByRole('group', { name: '确认生成新版本' });
- expect(confirmation).toHaveTextContent('将更新字幕、成片');
- expect(confirmation).toHaveTextContent('V1 的全部产出会保留');
- fireEvent.click(within(confirmation).getByRole('button', { name: '确认生成 V2' }));
-
+ it('saves manual subtitle edits before composing a new version', async () => {
+ const service = createInMemoryCreatorService();
+ const applyAction = vi.spyOn(service, 'applyAction');
+ render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={service} />);
+ await translateTestVideo();
+ fireEvent.change(screen.getByRole('textbox', { name: '横屏字幕 1' }), { target: { value: 'The manually revised opening.' } });
+ expect(screen.getByRole('button', { name: '合成视频' })).toBeDisabled();
+ await waitForSubtitleAutosave();
+ fireEvent.click(screen.getByRole('button', { name: '合成视频' }));
expect(await screen.findByRole('button', { name: '项目 V2' })).toBeInTheDocument();
- openSubtitleEditor();
expect(screen.getByRole('textbox', { name: '横屏字幕 1' })).toHaveValue('The manually revised opening.');
+ expect(applyAction.mock.calls.filter(([, request]) => ['edit-subtitle', 'run-stage'].includes(request.action)).map(([, request]) => request.action === 'run-stage' ? request.input.stageId : request.action)).toEqual(['subtitle', 'edit-subtitle', 'render-horizontal']);
});
it('adds dubbing through settings and generates it in the next version', async () => {
- const createObjectURL = vi.fn(() => 'blob:video-translation-dubbing');
- const revokeObjectURL = vi.fn();
- Object.defineProperty(URL, 'createObjectURL', {
- configurable: true,
- value: createObjectURL
- });
- Object.defineProperty(URL, 'revokeObjectURL', {
- configurable: true,
- value: revokeObjectURL
- });
- const rendered = render(<DashboardPage onSelectPrompt={vi.fn()} />);
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=test' }
- });
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- await startVideoTranslation();
-
- fireEvent.click(screen.getByRole('button', { name: '调整任务设置' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
- fireEvent.click(screen.getByRole('switch', { name: '生成目标语言配音' }));
- fireEvent.click(screen.getByRole('button', { name: '生成 V2' }));
-
+ const tts = createTtsServices();
+ const service = createInMemoryCreatorService();
+ const applyAction = vi.spyOn(service, 'applyAction');
+ const rendered = render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={service} creatorServicesService={tts.service} />);
+ await translateTestVideo();
+ openTranslationPanel('配音');
+ await waitFor(() => expect(screen.getByRole('switch', { name: '启用配音' })).toBeEnabled());
+ fireEvent.click(screen.getByRole('switch', { name: '启用配音' }));
+ await waitFor(() => expect(screen.getByRole('combobox', { name: '配音音色' })).toHaveAttribute('data-value', 'marin'));
+ fireEvent.click(screen.getByRole('button', { name: '配音并合成视频' }));
expect(await screen.findByRole('button', { name: '项目 V2' })).toBeInTheDocument();
- expect(screen.getByText('目标语言配音-V2.wav')).toBeInTheDocument();
- openSubtitleEditor();
- await waitFor(() => expect(document.querySelector('audio')).toHaveAttribute('src', 'blob:video-translation-dubbing'));
- expect(createObjectURL).toHaveBeenCalled();
-
+ expect(screen.getByText(/目标语言配音-V2.wav/)).toBeInTheDocument();
+ expect(applyAction).toHaveBeenCalledWith(expect.any(String), expect.objectContaining({ action: 'run-stage', input: expect.objectContaining({ stageId: 'tts', baseResultVersion: 1, inputResultVersion: 1 }) }));
+ await waitFor(() => expect(document.querySelector('audio')).toHaveAttribute('src', 'blob:preview'));
rendered.unmount();
- expect(revokeObjectURL).toHaveBeenCalledWith('blob:video-translation-dubbing');
+ expect(URL.revokeObjectURL).toHaveBeenCalledWith('blob:preview');
});
it('returns to settings and creates a new version without replacing the old one', async () => {
@@ -1495,7 +1384,6 @@ describe('DashboardPage', () => {
target: { value: 'https://www.youtube.com/watch?v=test' }
});
fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
await startVideoTranslation();
fireEvent.click(screen.getByRole('button', { name: '调整任务设置' }));
@@ -1523,7 +1411,6 @@ describe('DashboardPage', () => {
);
fireEvent.click(screen.getByRole('button', { name: '继续' }));
expect(screen.getByRole('combobox', { name: '翻译为' })).toHaveValue('ja');
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
fireEvent.click(screen.getByRole('button', { name: '生成 V2' }));
expect(await screen.findByRole('button', { name: '项目 V2' })).toBeInTheDocument();
@@ -1547,51 +1434,17 @@ describe('DashboardPage', () => {
});
it('reuses completed subtitles when video composition is enabled for a new version', async () => {
- const baseService = createInMemoryCreatorService();
- const applyAction = vi.fn(baseService.applyAction.bind(baseService));
- const creatorService = {
- ...baseService,
- applyAction
- } as CreatorWebService;
- render(
- <DashboardPage
- onSelectPrompt={vi.fn()}
- creatorService={creatorService}
- />
- );
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=reuse-subtitles' }
- });
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- await startVideoTranslation();
-
- fireEvent.click(screen.getByRole('button', { name: '调整任务设置' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
- fireEvent.click(screen.getByRole('button', { name: '生成 V2' }));
-
- await waitFor(() => expect(applyAction).toHaveBeenCalledWith(
- expect.any(String),
- expect.objectContaining({
- action: 'run-stage',
- input: expect.objectContaining({
- stageId: 'render-horizontal',
- workflow: true,
- baseResultVersion: 1,
- inputResultVersion: 1
- })
- })
- ));
- const runStageIds = applyAction.mock.calls.flatMap(([, request]) => (
- request.action === 'run-stage' && typeof request.input.stageId === 'string'
- ? [request.input.stageId]
- : []
- ));
- expect(runStageIds).toEqual(['subtitle', 'render-horizontal']);
- expect(screen.getByText('新版本已从“横屏成片”开始,已有前置产物会直接复用'))
- .toBeInTheDocument();
+ const service = createInMemoryCreatorService();
+ const applyAction = vi.spyOn(service, 'applyAction');
+ render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={service} />);
+ await translateTestVideo('reuse-subtitles');
+ fireEvent.click(screen.getByRole('button', { name: '合成视频' }));
+ await waitFor(() => expect(applyAction).toHaveBeenCalledWith(expect.any(String), expect.objectContaining({
+ action: 'run-stage', input: expect.objectContaining({ stageId: 'render-horizontal', workflow: true, baseResultVersion: 1, inputResultVersion: 1 })
+ })));
+ expect(applyAction.mock.calls.flatMap(([, request]) => request.action === 'run-stage' ? [request.input.stageId] : [])).toEqual(['subtitle', 'render-horizontal']);
+ expect(await screen.findByRole('button', { name: '项目 V2' })).toBeInTheDocument();
+ expect(screen.getByText('新版本已从“横屏成片”开始,旧版本和已有前置产物会继续保留')).toBeInTheDocument();
});
it('does not bind a changed URL source to the selected version input artifacts', async () => {
@@ -1608,7 +1461,6 @@ describe('DashboardPage', () => {
target: { value: 'https://www.youtube.com/watch?v=source-v1' }
});
fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
await startVideoTranslation();
fireEvent.click(screen.getByRole('button', { name: '调整任务设置' }));
@@ -1618,7 +1470,6 @@ describe('DashboardPage', () => {
target: { value: 'https://www.youtube.com/watch?v=source-v2' }
});
fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
fireEvent.click(screen.getByRole('button', { name: '生成 V2' }));
await waitFor(() => {
@@ -1635,95 +1486,35 @@ describe('DashboardPage', () => {
});
});
- it('commits a new version when output is disabled without rerunning a stage', async () => {
- const baseService = createInMemoryCreatorService();
- const applyAction = vi.fn(baseService.applyAction.bind(baseService));
- render(
- <DashboardPage
- onSelectPrompt={vi.fn()}
- creatorService={{ ...baseService, applyAction } as CreatorWebService}
- />
- );
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=settings-only' }
- });
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
- await startVideoTranslation();
-
+ it('keeps unchanged subtitle-only settings without rerunning a stage or creating a version', async () => {
+ const service = createInMemoryCreatorService();
+ const applyAction = vi.spyOn(service, 'applyAction');
+ render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={service} />);
+ await translateTestVideo('settings-only');
fireEvent.click(screen.getByRole('button', { name: '调整任务设置' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
fireEvent.click(screen.getByRole('button', { name: '生成 V2' }));
-
- await waitFor(() => expect(applyAction).toHaveBeenCalledWith(
- expect.any(String),
- expect.objectContaining({
- action: 'commit-version',
- input: { baseResultVersion: 1 }
- })
- ));
- expect(applyAction.mock.calls.flatMap(([, request]) => (
- request.action === 'run-stage' ? [request.input.stageId] : []
- ))).toEqual(['subtitle']);
- expect(await screen.findByRole('button', { name: '项目 V2' })).toBeInTheDocument();
+ expect(await screen.findByText('当前版本没有修改,不需要生成新版本')).toBeInTheDocument();
+ fireEvent.click(screen.getByRole('button', { name: '返回 V1 成品' }));
+ expect(applyAction.mock.calls.filter(([, request]) => request.action === 'run-stage')).toHaveLength(1);
+ expect(applyAction.mock.calls.some(([, request]) => request.action === 'commit-version')).toBe(false);
+ expect(screen.getByRole('button', { name: '项目 V1' })).toBeInTheDocument();
});
- it('merges a manual subtitle edit and downstream render into one project version', async () => {
- const baseService = createInMemoryCreatorService();
- const applyAction = vi.fn(baseService.applyAction.bind(baseService));
- render(
- <DashboardPage
- onSelectPrompt={vi.fn()}
- creatorService={{ ...baseService, applyAction } as CreatorWebService}
- />
- );
- openBlankWorkspace('视频翻译', '空白视频翻译');
- fireEvent.change(screen.getByRole('textbox', { name: '视频链接' }), {
- target: { value: 'https://www.youtube.com/watch?v=single-version' }
- });
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
- await startVideoTranslation();
-
- openSubtitleEditor();
- fireEvent.change(screen.getByRole('textbox', { name: '横屏字幕 1' }), {
- target: { value: 'Edited before rendering.' }
- });
- fireEvent.click(screen.getByRole('button', { name: '保存并生成 V2' }));
- fireEvent.click(screen.getByRole('button', { name: '确认生成 V2' }));
-
- await waitFor(() => expect(applyAction).toHaveBeenCalledWith(
- expect.any(String),
- expect.objectContaining({
- action: 'edit-subtitle',
- input: expect.objectContaining({
- baseResultVersion: 1,
- preserveResultVersion: true
- })
- })
- ));
- expect(applyAction).toHaveBeenCalledWith(
- expect.any(String),
- expect.objectContaining({
- action: 'run-stage',
- input: expect.objectContaining({
- stageId: 'render-horizontal',
- baseResultVersion: 1,
- inputResultVersion: 1
- })
- })
- );
- const renderRequest = applyAction.mock.calls.find(([, request]) => (
- request.action === 'run-stage'
- && request.input.stageId === 'render-horizontal'
- ))?.[1];
- expect(renderRequest?.input).not.toHaveProperty('targetResultVersion');
+ it('merges an autosaved subtitle edit and downstream render into one new project version', async () => {
+ const service = createInMemoryCreatorService();
+ const applyAction = vi.spyOn(service, 'applyAction');
+ render(<DashboardPage onSelectPrompt={vi.fn()} creatorService={service} />);
+ await translateTestVideo('single-version');
+ fireEvent.change(screen.getByRole('textbox', { name: '横屏字幕 1' }), { target: { value: 'Edited before rendering.' } });
+ await waitForSubtitleAutosave();
+ fireEvent.click(screen.getByRole('button', { name: '合成视频' }));
const versionTrigger = await screen.findByRole('button', { name: '项目 V2' });
+ expect(applyAction).toHaveBeenCalledWith(expect.any(String), expect.objectContaining({ action: 'edit-subtitle', input: expect.objectContaining({ baseResultVersion: 1, preserveResultVersion: true }) }));
+ const renderRequest = applyAction.mock.calls.find(([, request]) => request.action === 'run-stage' && request.input.stageId === 'render-horizontal')?.[1];
+ expect(renderRequest?.input).toMatchObject({ baseResultVersion: 1, inputResultVersion: 1 });
+ expect(renderRequest?.input).not.toHaveProperty('targetResultVersion');
fireEvent.click(versionTrigger);
+ expect(screen.getByRole('menu')).toHaveTextContent('项目 V1');
expect(screen.getByRole('menu')).not.toHaveTextContent('项目 V3');
});
@@ -1784,19 +1575,20 @@ describe('DashboardPage', () => {
.toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '继续' }));
expect(screen.getByRole('switch', { name: '优先使用平台字幕' })).toBeDisabled();
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
- expect(screen.getByRole('option', { name: /16:9/ })).toBeEnabled();
- expect(screen.getByRole('option', { name: /双画幅/ })).toBeEnabled();
- changeControl(screen.getByRole('combobox', { name: '输出画幅' }), { target: { value: 'vertical' } });
+ await startVideoTranslation();
+ openTranslationPanel('视频输出');
+ expect(screen.getByRole('radio', { name: /16:9/ })).toBeEnabled();
+ expect(screen.getByRole('radio', { name: /双画幅/ })).toBeEnabled();
+ fireEvent.click(screen.getByRole('radio', { name: /9:16/ }));
expect(screen.getByRole('textbox', { name: /竖屏主标题/ })).toBeInTheDocument();
- fireEvent.click(screen.getByRole('switch', { name: '生成目标语言配音' }));
+ openTranslationPanel('配音');
+ await waitFor(() => expect(screen.getByRole('switch', { name: '启用配音' })).toBeEnabled());
+ fireEvent.click(screen.getByRole('switch', { name: '启用配音' }));
- expect(screen.getByText('demo.mp4')).toBeInTheDocument();
- const voice = await screen.findByRole('combobox', { name: '配音音色' });
- await waitFor(() => expect(voice).toHaveAttribute('data-value', 'marin'));
+ expect(screen.getByRole('heading', { name: '视频翻译项目' }).parentElement).toHaveTextContent('demo.mp4');
+ await waitFor(() => expect(screen.getByRole('combobox', { name: '配音音色' })).toHaveAttribute('data-value', 'marin'));
expect(tts.getTtsVoices).toHaveBeenCalledWith('openai', 'gpt-4o-mini-tts');
- expect(screen.getByRole('switch', { name: '合成字幕视频' })).toHaveAttribute('aria-checked', 'true');
+ expect(screen.getByRole('switch', { name: '启用配音' })).toHaveAttribute('aria-checked', 'true');
});
it('only allows portrait output after detecting a portrait source video', async () => {
@@ -1821,13 +1613,13 @@ describe('DashboardPage', () => {
fireEvent.loadedMetadata(preview);
fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('button', { name: '继续' }));
- fireEvent.click(screen.getByRole('switch', { name: '合成字幕视频' }));
+ await startVideoTranslation();
+ openTranslationPanel('视频输出');
- expect(screen.getByRole('option', { name: /16:9/ })).toBeDisabled();
- expect(screen.getByRole('option', { name: /双画幅/ })).toBeDisabled();
- expect(screen.getByRole('option', { name: /9:16/ })).toBeEnabled();
- expect(screen.getByRole('combobox', { name: '输出画幅' })).toHaveValue('vertical');
+ expect(screen.getByRole('radio', { name: /16:9/ })).toBeDisabled();
+ expect(screen.getByRole('radio', { name: /双画幅/ })).toBeDisabled();
+ expect(screen.getByRole('radio', { name: /9:16/ })).toBeEnabled();
+ expect(screen.getByRole('radio', { name: /9:16/ })).toBeChecked();
});
it('requires a video before advancing to translation settings', () => {
@@ -2003,7 +1795,8 @@ describe('DashboardPage', () => {
expect(tts.previewTtsVoice).toHaveBeenCalledWith({
provider: 'openai',
model: 'gpt-4o-mini-tts',
- voiceId: 'nova'
+ voiceId: 'nova',
+ language: 'zh-CN'
});
expect(play).toHaveBeenCalledOnce();
fireEvent.click(screen.getByRole('button', { name: '暂停 · 星语' }));
@@ -2228,8 +2021,8 @@ describe('DashboardPage', () => {
target: { value: prompt }
});
expect(screen.getByRole('combobox', { name: /^模型$/ })).toHaveValue('GPT Image');
- fireEvent.change(screen.getByRole('combobox', { name: '图片画幅' }), { target: { value: '3:2' } });
- fireEvent.change(screen.getByRole('combobox', { name: '图片质量' }), { target: { value: 'high' } });
+ changeControl(screen.getByRole('combobox', { name: '图片画幅' }), { target: { value: '3:2' } });
+ changeControl(screen.getByRole('combobox', { name: '图片质量' }), { target: { value: 'high' } });
expect(screen.getByLabelText('任务摘要')).toHaveTextContent('3:2');
expect(screen.getByLabelText('任务摘要')).toHaveTextContent('高清');
diff --git a/apps/web/src/features/dashboard/VideoTranslationResultWorkspace.test.tsx b/apps/web/src/features/dashboard/VideoTranslationResultWorkspace.test.tsx
index 18102178..80cfceaf 100644
--- a/apps/web/src/features/dashboard/VideoTranslationResultWorkspace.test.tsx
+++ b/apps/web/src/features/dashboard/VideoTranslationResultWorkspace.test.tsx
@@ -1,3 +1,4 @@
+import { selectOption } from '../../test/select-option.js';
import { act, fireEvent, render, screen, within } from '@testing-library/react';
import { useState } from 'react';
import { describe, expect, it, vi } from 'vitest';
@@ -146,7 +147,7 @@ describe('VideoTranslationResultWorkspace', () => {
expect(screen.getByDisplayValue('你好')).toBeInTheDocument();
expect(screen.getByDisplayValue('再见世界')).toBeInTheDocument();
expect(screen.getByDisplayValue('Hello world')).toBeInTheDocument();
- fireEvent.change(within(find).getByRole('combobox'), { target: { value: 'text' } });
+ selectOption(within(find).getByRole('combobox'), 'text');
fireEvent.change(within(find).getByRole('textbox', { name: '查找' }), { target: { value: 'HELLO' } });
expect(within(find).getByRole('status')).toHaveTextContent('1 / 1');
fireEvent.click(within(find).getByRole('button', { name: '区分大小写' }));
@@ -174,14 +175,14 @@ describe('VideoTranslationResultWorkspace', () => {
render(<Harness />);
fireEvent.click(screen.getByRole('button', { name: '查找与替换' }));
const find = screen.getByRole('search');
- fireEvent.change(within(find).getByRole('combobox'), { target: { value: 'text' } });
+ selectOption(within(find).getByRole('combobox'), 'text');
fireEvent.change(within(find).getByRole('textbox', { name: '查找' }), { target: { value: 'hi' } });
const replacement = within(find).getByRole('textbox', { name: '替换为' });
fireEvent.change(replacement, { target: { value: 'hi!' } });
fireEvent.keyDown(replacement, { key: 'Enter' });
expect(screen.getByDisplayValue('hi! hi')).toBeInTheDocument();
expect(within(find).getByRole('status')).toHaveTextContent('2 / 2');
- fireEvent.change(within(find).getByRole('combobox'), { target: { value: 'all' } });
+ selectOption(within(find).getByRole('combobox'), 'all');
fireEvent.change(replacement, { target: { value: 'bye' } });
fireEvent.click(within(find).getByRole('button', { name: '全部替换' }));
expect(screen.getByDisplayValue('bye! bye')).toBeInTheDocument();
diff --git a/apps/web/src/features/dashboard/VideoTranslationWorkspace.tsx b/apps/web/src/features/dashboard/VideoTranslationWorkspace.tsx
index 2a9c6aa6..8844e726 100644
--- a/apps/web/src/features/dashboard/VideoTranslationWorkspace.tsx
+++ b/apps/web/src/features/dashboard/VideoTranslationWorkspace.tsx
@@ -3241,7 +3241,6 @@ export default function VideoTranslationWorkspace(props: {
setWorkspacePhase('result');
setResultTab('subtitles');
setSubtitleImmersive(true);
- setDraftBaseVersion(undefined);
setResultNotice(isRegeneration
? stageId === undefined
? l(
diff --git a/apps/web/src/features/dashboard/dashboard-css.test.ts b/apps/web/src/features/dashboard/dashboard-css.test.ts
index 2a1ac8ad..8e3931c0 100644
--- a/apps/web/src/features/dashboard/dashboard-css.test.ts
+++ b/apps/web/src/features/dashboard/dashboard-css.test.ts
@@ -86,9 +86,9 @@ describe('dashboard CSS contracts', () => {
expect(characterPicker[0]).toContain('margin-top: 16px;');
expect(cssBlocks('.stickman-voice-settings + .stickman-tts-configuration')[0]).toContain('margin-top: 16px;');
expect(cssBlocks('.creator-tool-field')[0]).toContain('gap: 8px;');
- expect(cssBlocks('.video-translation-select-wrap select')[0]).toContain('padding-block: 0;');
- expect(cssBlocks('.video-translation-select-wrap select')[0]).toContain('padding-inline: 12px 40px;');
- expect(cssBlocks('.video-translation-select-wrap svg')[0]).toContain('inset-inline-end: 12px;');
+ expect(cssBlocks('.video-translation-select-wrap :is(select, .app-select-trigger)')[0]).toContain('padding-block: 0;');
+ expect(cssBlocks('.video-translation-select-wrap :is(select, .app-select-trigger)')[0]).toContain('padding-inline: 12px 40px;');
+ expect(cssBlocks('.video-translation-select-wrap > svg')[0]).toContain('inset-inline-end: 12px;');
});
it('keeps collaboration panels full-height beside the workspace at narrow widths', () => {
@@ -143,7 +143,7 @@ describe('dashboard CSS contracts', () => {
expect(preview[0]).toContain('grid-template-rows: auto auto;');
expect(preview[0]).toContain('align-content: start;');
expect(player[0]).toContain('aspect-ratio: var(--subtitle-preview-aspect-ratio, 16 / 9);');
- expect(overlay[0]).toContain('background: rgb(0 0 0 / 55%);');
+ expect(overlay[0]).toContain('background: transparent;');
expect(overlay[0]).toContain('z-index: 1;');
expect(media[0]).toContain('object-fit: cover;');
expect(cues[0]).toContain('position: absolute;');
diff --git a/apps/web/src/features/schedules/SchedulesView.test.tsx b/apps/web/src/features/schedules/SchedulesView.test.tsx
index b8f6b7fd..d2b0ae6b 100644
--- a/apps/web/src/features/schedules/SchedulesView.test.tsx
+++ b/apps/web/src/features/schedules/SchedulesView.test.tsx
@@ -1,3 +1,4 @@
+import { selectOption } from '../../test/select-option.js';
import type {
CreateScheduleRequest,
ScheduleDetailResponse,
@@ -115,7 +116,7 @@ describe('SchedulesView', () => {
expect(screen.queryByLabelText('任务重叠时')).not.toBeInTheDocument();
await user.type(screen.getByLabelText('定时任务标题'), '每日简报');
await user.type(screen.getByLabelText('任务内容'), '总结今天的项目进展');
- await user.selectOptions(screen.getByLabelText('重复'), 'weekdays');
+ selectOption(screen.getByLabelText('重复'), 'weekdays');
await user.click(screen.getByRole('button', { name: '执行时间' }));
expect(screen.getByRole('dialog', { name: '选择执行时间' })).toBeInTheDocument();
await user.click(screen.getByRole('option', { name: '小时 08' }));
diff --git a/apps/web/src/i18n/locales/ar-SA.json b/apps/web/src/i18n/locales/ar-SA.json
index 04ce9e4d..f11bf35c 100644
--- a/apps/web/src/i18n/locales/ar-SA.json
+++ b/apps/web/src/i18n/locales/ar-SA.json
@@ -3334,5 +3334,9 @@
"Save as template": "حفظ كقالب",
"Customize subtitle style": "تخصيص نمط الترجمة",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "لا توجد أنماط محفوظة بعد. عدّل النمط في «تخصيص»، ثم اختر «حفظ كقالب».",
- "Agent Mode": "وضع Agent"
+ "Agent Mode": "وضع Agent",
+ "Subtitle preview progress": "تقدم معاينة الترجمة",
+ "Adjust timing": "ضبط التوقيت",
+ "Enter the required credentials for the selected dubbing service to continue.": "أدخل بيانات الاعتماد المطلوبة لخدمة الدبلجة المحددة للمتابعة.",
+ "Save and continue composing": "حفظ ومتابعة تركيب الفيديو"
}
diff --git a/apps/web/src/i18n/locales/bg-BG.json b/apps/web/src/i18n/locales/bg-BG.json
index 040c10f0..57605f88 100644
--- a/apps/web/src/i18n/locales/bg-BG.json
+++ b/apps/web/src/i18n/locales/bg-BG.json
@@ -3334,5 +3334,9 @@
"Save as template": "Запази като шаблон",
"Customize subtitle style": "Персонализиране на стила на субтитрите",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Все още няма запазени стилове. Направете промени в „Персонализиране“, след което изберете „Запази като шаблон“.",
- "Agent Mode": "Режим Agent"
+ "Agent Mode": "Режим Agent",
+ "Subtitle preview progress": "Напредък на прегледа на субтитрите",
+ "Adjust timing": "Регулиране на времето",
+ "Enter the required credentials for the selected dubbing service to continue.": "Въведете необходимите идентификационни данни за избраната услуга за дублаж, за да продължите.",
+ "Save and continue composing": "Запазване и продължаване на композирането"
}
diff --git a/apps/web/src/i18n/locales/bn-BD.json b/apps/web/src/i18n/locales/bn-BD.json
index a0a70d5e..ca2f0a07 100644
--- a/apps/web/src/i18n/locales/bn-BD.json
+++ b/apps/web/src/i18n/locales/bn-BD.json
@@ -3334,5 +3334,9 @@
"Save as template": "টেমপ্লেট হিসেবে সংরক্ষণ",
"Customize subtitle style": "সাবটাইটেলের স্টাইল কাস্টমাইজ করুন",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "এখনও কোনো স্টাইল সংরক্ষিত নেই। কাস্টমাইজ থেকে স্টাইল বদলে টেমপ্লেট হিসেবে সংরক্ষণ করুন।",
- "Agent Mode": "Agent মোড"
+ "Agent Mode": "Agent মোড",
+ "Subtitle preview progress": "সাবটাইটেল প্রিভিউয়ের অগ্রগতি",
+ "Adjust timing": "সময় সমন্বয় করুন",
+ "Enter the required credentials for the selected dubbing service to continue.": "চালিয়ে যেতে নির্বাচিত ডাবিং পরিষেবার প্রয়োজনীয় পরিচয়পত্র লিখুন।",
+ "Save and continue composing": "সংরক্ষণ করে ভিডিও তৈরি চালিয়ে যান"
}
diff --git a/apps/web/src/i18n/locales/cs-CZ.json b/apps/web/src/i18n/locales/cs-CZ.json
index 74488d15..c28069e2 100644
--- a/apps/web/src/i18n/locales/cs-CZ.json
+++ b/apps/web/src/i18n/locales/cs-CZ.json
@@ -3334,5 +3334,9 @@
"Save as template": "Uložit jako šablonu",
"Customize subtitle style": "Přizpůsobit styl titulků",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Zatím nemáte uložené styly. Upravte styl přes Přizpůsobit a pak zvolte Uložit jako šablonu.",
- "Agent Mode": "Režim Agent"
+ "Agent Mode": "Režim Agent",
+ "Subtitle preview progress": "Průběh náhledu titulků",
+ "Adjust timing": "Upravit časování",
+ "Enter the required credentials for the selected dubbing service to continue.": "Chcete-li pokračovat, zadejte požadované přihlašovací údaje pro vybranou dabingovou službu.",
+ "Save and continue composing": "Uložit a pokračovat ve skládání videa"
}
diff --git a/apps/web/src/i18n/locales/da-DK.json b/apps/web/src/i18n/locales/da-DK.json
index ad41aa47..db5f25bc 100644
--- a/apps/web/src/i18n/locales/da-DK.json
+++ b/apps/web/src/i18n/locales/da-DK.json
@@ -3334,5 +3334,9 @@
"Save as template": "Gem som skabelon",
"Customize subtitle style": "Tilpas undertekststil",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Ingen gemte stilarter endnu. Juster en stil under Tilpas, og vælg derefter Gem som skabelon.",
- "Agent Mode": "Agent-tilstand"
+ "Agent Mode": "Agent-tilstand",
+ "Subtitle preview progress": "Status for undertekstforhåndsvisning",
+ "Adjust timing": "Juster timing",
+ "Enter the required credentials for the selected dubbing service to continue.": "Indtast de nødvendige legitimationsoplysninger til den valgte dubbingtjeneste for at fortsætte.",
+ "Save and continue composing": "Gem og fortsæt med at sammensætte videoen"
}
diff --git a/apps/web/src/i18n/locales/de-DE.json b/apps/web/src/i18n/locales/de-DE.json
index 58305e32..3ae97ad7 100644
--- a/apps/web/src/i18n/locales/de-DE.json
+++ b/apps/web/src/i18n/locales/de-DE.json
@@ -3334,5 +3334,9 @@
"Save as template": "Als Vorlage speichern",
"Customize subtitle style": "Untertitelstil anpassen",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Noch keine gespeicherten Stile. Passe einen Stil unter Anpassen an und wähle dann Als Vorlage speichern.",
- "Agent Mode": "Agent-Modus"
+ "Agent Mode": "Agent-Modus",
+ "Subtitle preview progress": "Fortschritt der Untertitelvorschau",
+ "Adjust timing": "Timing anpassen",
+ "Enter the required credentials for the selected dubbing service to continue.": "Geben Sie die erforderlichen Zugangsdaten für den ausgewählten Synchronisationsdienst ein, um fortzufahren.",
+ "Save and continue composing": "Speichern und Video weiter zusammenstellen"
}
diff --git a/apps/web/src/i18n/locales/el-GR.json b/apps/web/src/i18n/locales/el-GR.json
index f7af27fb..d7298c79 100644
--- a/apps/web/src/i18n/locales/el-GR.json
+++ b/apps/web/src/i18n/locales/el-GR.json
@@ -3334,5 +3334,9 @@
"Save as template": "Αποθήκευση ως πρότυπο",
"Customize subtitle style": "Προσαρμογή στυλ υποτίτλων",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Δεν υπάρχουν αποθηκευμένα στυλ ακόμη. Αλλάξτε ένα στυλ στην Προσαρμογή και επιλέξτε Αποθήκευση ως πρότυπο.",
- "Agent Mode": "Λειτουργία Agent"
+ "Agent Mode": "Λειτουργία Agent",
+ "Subtitle preview progress": "Πρόοδος προεπισκόπησης υποτίτλων",
+ "Adjust timing": "Προσαρμογή χρονισμού",
+ "Enter the required credentials for the selected dubbing service to continue.": "Εισαγάγετε τα απαιτούμενα διαπιστευτήρια για την επιλεγμένη υπηρεσία μεταγλώττισης για να συνεχίσετε.",
+ "Save and continue composing": "Αποθήκευση και συνέχιση σύνθεσης βίντεο"
}
diff --git a/apps/web/src/i18n/locales/es-ES.json b/apps/web/src/i18n/locales/es-ES.json
index 0d26fe59..277d039b 100644
--- a/apps/web/src/i18n/locales/es-ES.json
+++ b/apps/web/src/i18n/locales/es-ES.json
@@ -3334,5 +3334,9 @@
"Save as template": "Guardar como plantilla",
"Customize subtitle style": "Personalizar estilo de subtítulos",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Aún no hay estilos guardados. Ajusta un estilo en Personalizar y luego elige Guardar como plantilla.",
- "Agent Mode": "Modo Agent"
+ "Agent Mode": "Modo Agent",
+ "Subtitle preview progress": "Progreso de la vista previa de subtítulos",
+ "Adjust timing": "Ajustar tiempos",
+ "Enter the required credentials for the selected dubbing service to continue.": "Introduce las credenciales necesarias para el servicio de doblaje seleccionado para continuar.",
+ "Save and continue composing": "Guardar y continuar componiendo el vídeo"
}
diff --git a/apps/web/src/i18n/locales/fa-IR.json b/apps/web/src/i18n/locales/fa-IR.json
index 7ee2fe87..339862e9 100644
--- a/apps/web/src/i18n/locales/fa-IR.json
+++ b/apps/web/src/i18n/locales/fa-IR.json
@@ -3334,5 +3334,9 @@
"Save as template": "ذخیره به‌عنوان الگو",
"Customize subtitle style": "سفارشی‌سازی سبک زیرنویس",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "هنوز سبکی ذخیره نشده است. سبک را در «سفارشی‌سازی» تنظیم کنید، سپس «ذخیره به‌عنوان الگو» را انتخاب کنید.",
- "Agent Mode": "حالت Agent"
+ "Agent Mode": "حالت Agent",
+ "Subtitle preview progress": "پیشرفت پیش‌نمایش زیرنویس",
+ "Adjust timing": "تنظیم زمان‌بندی",
+ "Enter the required credentials for the selected dubbing service to continue.": "برای ادامه، اطلاعات احراز هویت موردنیاز سرویس دوبله انتخاب‌شده را وارد کنید.",
+ "Save and continue composing": "ذخیره و ادامه ساخت ویدیو"
}
diff --git a/apps/web/src/i18n/locales/fi-FI.json b/apps/web/src/i18n/locales/fi-FI.json
index 96b1e708..9d48a159 100644
--- a/apps/web/src/i18n/locales/fi-FI.json
+++ b/apps/web/src/i18n/locales/fi-FI.json
@@ -3334,5 +3334,9 @@
"Save as template": "Tallenna mallina",
"Customize subtitle style": "Mukauta tekstitystyyliä",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Ei vielä tallennettuja tyylejä. Muokkaa tyyliä kohdassa Mukauta ja valitse sitten Tallenna mallina.",
- "Agent Mode": "Agent-tila"
+ "Agent Mode": "Agent-tila",
+ "Subtitle preview progress": "Tekstityksen esikatselun edistyminen",
+ "Adjust timing": "Säädä ajoitusta",
+ "Enter the required credentials for the selected dubbing service to continue.": "Jatka antamalla valitun dubbauspalvelun vaatimat tunnistetiedot.",
+ "Save and continue composing": "Tallenna ja jatka videon koostamista"
}
diff --git a/apps/web/src/i18n/locales/fil-PH.json b/apps/web/src/i18n/locales/fil-PH.json
index b15aa8cd..eaa1d9ad 100644
--- a/apps/web/src/i18n/locales/fil-PH.json
+++ b/apps/web/src/i18n/locales/fil-PH.json
@@ -3334,5 +3334,9 @@
"Save as template": "I-save bilang template",
"Customize subtitle style": "I-customize ang estilo ng subtitle",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Wala pang naka-save na estilo. Ayusin ang estilo sa I-customize, pagkatapos ay piliin ang I-save bilang template.",
- "Agent Mode": "Mode ng Agent"
+ "Agent Mode": "Mode ng Agent",
+ "Subtitle preview progress": "Progreso ng preview ng subtitle",
+ "Adjust timing": "Ayusin ang tiyempo",
+ "Enter the required credentials for the selected dubbing service to continue.": "Ilagay ang mga kinakailangang kredensyal para sa napiling serbisyo ng dubbing upang magpatuloy.",
+ "Save and continue composing": "I-save at magpatuloy sa pagbuo ng video"
}
diff --git a/apps/web/src/i18n/locales/fr-FR.json b/apps/web/src/i18n/locales/fr-FR.json
index 5a65887e..85e454db 100644
--- a/apps/web/src/i18n/locales/fr-FR.json
+++ b/apps/web/src/i18n/locales/fr-FR.json
@@ -3334,5 +3334,9 @@
"Save as template": "Enregistrer comme modèle",
"Customize subtitle style": "Personnaliser le style des sous-titres",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Aucun style enregistré. Modifiez un style dans Personnaliser, puis choisissez Enregistrer comme modèle.",
- "Agent Mode": "Mode Agent"
+ "Agent Mode": "Mode Agent",
+ "Subtitle preview progress": "Progression de l’aperçu des sous-titres",
+ "Adjust timing": "Ajuster le minutage",
+ "Enter the required credentials for the selected dubbing service to continue.": "Saisissez les identifiants requis pour le service de doublage sélectionné afin de continuer.",
+ "Save and continue composing": "Enregistrer et poursuivre la composition vidéo"
}
diff --git a/apps/web/src/i18n/locales/gu-IN.json b/apps/web/src/i18n/locales/gu-IN.json
index fb2b22e4..d989cabb 100644
--- a/apps/web/src/i18n/locales/gu-IN.json
+++ b/apps/web/src/i18n/locales/gu-IN.json
@@ -3334,5 +3334,9 @@
"Save as template": "ટેમ્પલેટ તરીકે સાચવો",
"Customize subtitle style": "સબટાઇટલની શૈલી કસ્ટમાઇઝ કરો",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "હજી કોઈ શૈલી સાચવેલી નથી. કસ્ટમાઇઝ કરોમાં શૈલી બદલો, પછી ટેમ્પલેટ તરીકે સાચવો પસંદ કરો.",
- "Agent Mode": "Agent મોડ"
+ "Agent Mode": "Agent મોડ",
+ "Subtitle preview progress": "સબટાઇટલ પૂર્વાવલોકનની પ્રગતિ",
+ "Adjust timing": "સમય ગોઠવો",
+ "Enter the required credentials for the selected dubbing service to continue.": "આગળ વધવા માટે પસંદ કરેલી ડબિંગ સેવા માટે જરૂરી ઓળખપત્રો દાખલ કરો.",
+ "Save and continue composing": "સાચવો અને વિડિયો બનાવવાનું ચાલુ રાખો"
}
diff --git a/apps/web/src/i18n/locales/he-IL.json b/apps/web/src/i18n/locales/he-IL.json
index 84b8e09d..34d175f2 100644
--- a/apps/web/src/i18n/locales/he-IL.json
+++ b/apps/web/src/i18n/locales/he-IL.json
@@ -3334,5 +3334,9 @@
"Save as template": "שמירה כתבנית",
"Customize subtitle style": "התאמת סגנון הכתוביות",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "עדיין אין סגנונות שמורים. ערכו סגנון בהתאמה אישית, ולאחר מכן בחרו שמירה כתבנית.",
- "Agent Mode": "מצב Agent"
+ "Agent Mode": "מצב Agent",
+ "Subtitle preview progress": "התקדמות התצוגה המקדימה של הכתוביות",
+ "Adjust timing": "התאמת תזמון",
+ "Enter the required credentials for the selected dubbing service to continue.": "יש להזין את פרטי ההזדהות הנדרשים לשירות הדיבוב שנבחר כדי להמשיך.",
+ "Save and continue composing": "שמירה והמשך הרכבת הסרטון"
}
diff --git a/apps/web/src/i18n/locales/hi-IN.json b/apps/web/src/i18n/locales/hi-IN.json
index bc8102e8..53c059de 100644
--- a/apps/web/src/i18n/locales/hi-IN.json
+++ b/apps/web/src/i18n/locales/hi-IN.json
@@ -3334,5 +3334,9 @@
"Save as template": "टेम्पलेट के रूप में सहेजें",
"Customize subtitle style": "सबटाइटल शैली कस्टमाइज़ करें",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "अभी कोई शैली सहेजी नहीं गई है। कस्टमाइज़ करें में शैली बदलें, फिर टेम्पलेट के रूप में सहेजें चुनें।",
- "Agent Mode": "Agent मोड"
+ "Agent Mode": "Agent मोड",
+ "Subtitle preview progress": "उपशीर्षक पूर्वावलोकन की प्रगति",
+ "Adjust timing": "समय समायोजित करें",
+ "Enter the required credentials for the selected dubbing service to continue.": "जारी रखने के लिए चुनी गई डबिंग सेवा के आवश्यक क्रेडेंशियल दर्ज करें।",
+ "Save and continue composing": "सहेजें और वीडियो बनाना जारी रखें"
}
diff --git a/apps/web/src/i18n/locales/hr-HR.json b/apps/web/src/i18n/locales/hr-HR.json
index 29ef67ee..c7f2e8ed 100644
--- a/apps/web/src/i18n/locales/hr-HR.json
+++ b/apps/web/src/i18n/locales/hr-HR.json
@@ -3334,5 +3334,9 @@
"Save as template": "Spremi kao predložak",
"Customize subtitle style": "Prilagodi stil titlova",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Još nema spremljenih stilova. Uredite stil u Prilagodi pa odaberite Spremi kao predložak.",
- "Agent Mode": "Način Agent"
+ "Agent Mode": "Način Agent",
+ "Subtitle preview progress": "Napredak pretpregleda titlova",
+ "Adjust timing": "Prilagodi vrijeme",
+ "Enter the required credentials for the selected dubbing service to continue.": "Unesite potrebne vjerodajnice za odabranu uslugu sinkronizacije kako biste nastavili.",
+ "Save and continue composing": "Spremi i nastavi sastavljati video"
}
diff --git a/apps/web/src/i18n/locales/hu-HU.json b/apps/web/src/i18n/locales/hu-HU.json
index e704862c..58acb4be 100644
--- a/apps/web/src/i18n/locales/hu-HU.json
+++ b/apps/web/src/i18n/locales/hu-HU.json
@@ -3334,5 +3334,9 @@
"Save as template": "Mentés sablonként",
"Customize subtitle style": "Feliratstílus testreszabása",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Még nincsenek mentett stílusok. Módosíts egy stílust a Testreszabás alatt, majd válaszd a Mentés sablonként lehetőséget.",
- "Agent Mode": "Agent mód"
+ "Agent Mode": "Agent mód",
+ "Subtitle preview progress": "Feliratelőnézet állapota",
+ "Adjust timing": "Időzítés módosítása",
+ "Enter the required credentials for the selected dubbing service to continue.": "A folytatáshoz adja meg a kiválasztott szinkronizálási szolgáltatás szükséges hitelesítő adatait.",
+ "Save and continue composing": "Mentés és a videó összeállításának folytatása"
}
diff --git a/apps/web/src/i18n/locales/id-ID.json b/apps/web/src/i18n/locales/id-ID.json
index 0019e549..cbcb4118 100644
--- a/apps/web/src/i18n/locales/id-ID.json
+++ b/apps/web/src/i18n/locales/id-ID.json
@@ -3334,5 +3334,9 @@
"Save as template": "Simpan sebagai templat",
"Customize subtitle style": "Sesuaikan gaya subtitel",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Belum ada gaya tersimpan. Atur gaya di Sesuaikan, lalu pilih Simpan sebagai templat.",
- "Agent Mode": "Mode Agent"
+ "Agent Mode": "Mode Agent",
+ "Subtitle preview progress": "Progres pratinjau subtitel",
+ "Adjust timing": "Sesuaikan waktu",
+ "Enter the required credentials for the selected dubbing service to continue.": "Masukkan kredensial yang diperlukan untuk layanan sulih suara yang dipilih untuk melanjutkan.",
+ "Save and continue composing": "Simpan dan lanjutkan penyusunan video"
}
diff --git a/apps/web/src/i18n/locales/it-IT.json b/apps/web/src/i18n/locales/it-IT.json
index 0ca42910..7314a7c0 100644
--- a/apps/web/src/i18n/locales/it-IT.json
+++ b/apps/web/src/i18n/locales/it-IT.json
@@ -3334,5 +3334,9 @@
"Save as template": "Salva come modello",
"Customize subtitle style": "Personalizza lo stile dei sottotitoli",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Non ci sono ancora stili salvati. Modifica uno stile in Personalizza, poi scegli Salva come modello.",
- "Agent Mode": "Modalità Agent"
+ "Agent Mode": "Modalità Agent",
+ "Subtitle preview progress": "Avanzamento dell’anteprima dei sottotitoli",
+ "Adjust timing": "Regola i tempi",
+ "Enter the required credentials for the selected dubbing service to continue.": "Inserisci le credenziali richieste per il servizio di doppiaggio selezionato per continuare.",
+ "Save and continue composing": "Salva e continua la composizione del video"
}
diff --git a/apps/web/src/i18n/locales/ja-JP.json b/apps/web/src/i18n/locales/ja-JP.json
index 4c6e915a..26793c1e 100644
--- a/apps/web/src/i18n/locales/ja-JP.json
+++ b/apps/web/src/i18n/locales/ja-JP.json
@@ -3334,5 +3334,9 @@
"Save as template": "テンプレートとして保存",
"Customize subtitle style": "字幕スタイルをカスタマイズ",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "保存済みのスタイルはまだありません。「カスタマイズ」で調整し、「テンプレートとして保存」を選択してください。",
- "Agent Mode": "Agent モード"
+ "Agent Mode": "Agent モード",
+ "Subtitle preview progress": "字幕プレビューの進行状況",
+ "Adjust timing": "タイミングを調整",
+ "Enter the required credentials for the selected dubbing service to continue.": "続行するには、選択した吹き替えサービスに必要な認証情報を入力してください。",
+ "Save and continue composing": "保存して動画の合成を続行"
}
diff --git a/apps/web/src/i18n/locales/ko-KR.json b/apps/web/src/i18n/locales/ko-KR.json
index adb87ef8..4c4df10b 100644
--- a/apps/web/src/i18n/locales/ko-KR.json
+++ b/apps/web/src/i18n/locales/ko-KR.json
@@ -3334,5 +3334,9 @@
"Save as template": "템플릿으로 저장",
"Customize subtitle style": "자막 스타일 사용자 지정",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "저장된 스타일이 없습니다. 사용자 지정에서 스타일을 조정한 다음 템플릿으로 저장을 선택하세요.",
- "Agent Mode": "Agent 모드"
+ "Agent Mode": "Agent 모드",
+ "Subtitle preview progress": "자막 미리보기 진행 상황",
+ "Adjust timing": "타이밍 조정",
+ "Enter the required credentials for the selected dubbing service to continue.": "계속하려면 선택한 더빙 서비스에 필요한 인증 정보를 입력하세요.",
+ "Save and continue composing": "저장하고 영상 합성 계속"
}
diff --git a/apps/web/src/i18n/locales/mr-IN.json b/apps/web/src/i18n/locales/mr-IN.json
index 6e08652a..35c4dcd0 100644
--- a/apps/web/src/i18n/locales/mr-IN.json
+++ b/apps/web/src/i18n/locales/mr-IN.json
@@ -3334,5 +3334,9 @@
"Save as template": "टेम्पलेट म्हणून जतन करा",
"Customize subtitle style": "उपशीर्षक शैली सानुकूलित करा",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "अद्याप कोणतीही शैली जतन केलेली नाही. सानुकूलित करामध्ये शैली बदला, नंतर टेम्पलेट म्हणून जतन करा निवडा.",
- "Agent Mode": "Agent मोड"
+ "Agent Mode": "Agent मोड",
+ "Subtitle preview progress": "उपशीर्षक पूर्वावलोकनाची प्रगती",
+ "Adjust timing": "वेळ समायोजित करा",
+ "Enter the required credentials for the selected dubbing service to continue.": "पुढे जाण्यासाठी निवडलेल्या डबिंग सेवेची आवश्यक ओळखपत्रे प्रविष्ट करा.",
+ "Save and continue composing": "जतन करा आणि व्हिडिओ तयार करणे सुरू ठेवा"
}
diff --git a/apps/web/src/i18n/locales/ms-MY.json b/apps/web/src/i18n/locales/ms-MY.json
index 356a68e6..ec5abd79 100644
--- a/apps/web/src/i18n/locales/ms-MY.json
+++ b/apps/web/src/i18n/locales/ms-MY.json
@@ -3334,5 +3334,9 @@
"Save as template": "Simpan sebagai templat",
"Customize subtitle style": "Sesuaikan gaya sari kata",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Belum ada gaya disimpan. Laraskan gaya dalam Sesuaikan, kemudian pilih Simpan sebagai templat.",
- "Agent Mode": "Mod Agent"
+ "Agent Mode": "Mod Agent",
+ "Subtitle preview progress": "Kemajuan pratonton sari kata",
+ "Adjust timing": "Laraskan masa",
+ "Enter the required credentials for the selected dubbing service to continue.": "Masukkan kelayakan yang diperlukan untuk perkhidmatan alih suara yang dipilih untuk meneruskan.",
+ "Save and continue composing": "Simpan dan teruskan penggabungan video"
}
diff --git a/apps/web/src/i18n/locales/nb-NO.json b/apps/web/src/i18n/locales/nb-NO.json
index 5dc9e1f0..8baabe27 100644
--- a/apps/web/src/i18n/locales/nb-NO.json
+++ b/apps/web/src/i18n/locales/nb-NO.json
@@ -3334,5 +3334,9 @@
"Save as template": "Lagre som mal",
"Customize subtitle style": "Tilpass undertekststil",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Ingen lagrede stiler ennå. Juster en stil under Tilpass, og velg deretter Lagre som mal.",
- "Agent Mode": "Agent-modus"
+ "Agent Mode": "Agent-modus",
+ "Subtitle preview progress": "Fremdrift for forhåndsvisning av undertekster",
+ "Adjust timing": "Juster timing",
+ "Enter the required credentials for the selected dubbing service to continue.": "Skriv inn nødvendig påloggingsinformasjon for den valgte dubbingtjenesten for å fortsette.",
+ "Save and continue composing": "Lagre og fortsett å sette sammen videoen"
}
diff --git a/apps/web/src/i18n/locales/nl-NL.json b/apps/web/src/i18n/locales/nl-NL.json
index 74c63f3c..37445f17 100644
--- a/apps/web/src/i18n/locales/nl-NL.json
+++ b/apps/web/src/i18n/locales/nl-NL.json
@@ -3334,5 +3334,9 @@
"Save as template": "Opslaan als sjabloon",
"Customize subtitle style": "Ondertitelstijl aanpassen",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Nog geen opgeslagen stijlen. Pas een stijl aan via Aanpassen en kies vervolgens Opslaan als sjabloon.",
- "Agent Mode": "Agent-modus"
+ "Agent Mode": "Agent-modus",
+ "Subtitle preview progress": "Voortgang van ondertitelvoorbeeld",
+ "Adjust timing": "Timing aanpassen",
+ "Enter the required credentials for the selected dubbing service to continue.": "Voer de vereiste inloggegevens in voor de geselecteerde nasynchronisatiedienst om door te gaan.",
+ "Save and continue composing": "Opslaan en doorgaan met video samenstellen"
}
diff --git a/apps/web/src/i18n/locales/pa-IN.json b/apps/web/src/i18n/locales/pa-IN.json
index bbc879e8..bc9a8748 100644
--- a/apps/web/src/i18n/locales/pa-IN.json
+++ b/apps/web/src/i18n/locales/pa-IN.json
@@ -3334,5 +3334,9 @@
"Save as template": "ਟੈਂਪਲੇਟ ਵਜੋਂ ਸੁਰੱਖਿਅਤ ਕਰੋ",
"Customize subtitle style": "ਉਪਸਿਰਲੇਖ ਸ਼ੈਲੀ ਅਨੁਕੂਲਿਤ ਕਰੋ",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "ਹਾਲੇ ਕੋਈ ਸ਼ੈਲੀ ਸੁਰੱਖਿਅਤ ਨਹੀਂ ਹੈ। ਅਨੁਕੂਲਿਤ ਕਰੋ ਵਿੱਚ ਸ਼ੈਲੀ ਬਦਲੋ, ਫਿਰ ਟੈਂਪਲੇਟ ਵਜੋਂ ਸੁਰੱਖਿਅਤ ਕਰੋ ਚੁਣੋ।",
- "Agent Mode": "Agent ਮੋਡ"
+ "Agent Mode": "Agent ਮੋਡ",
+ "Subtitle preview progress": "ਉਪਸਿਰਲੇਖ ਝਲਕ ਦੀ ਪ੍ਰਗਤੀ",
+ "Adjust timing": "ਸਮਾਂ ਵਿਵਸਥਿਤ ਕਰੋ",
+ "Enter the required credentials for the selected dubbing service to continue.": "ਜਾਰੀ ਰੱਖਣ ਲਈ ਚੁਣੀ ਗਈ ਡਬਿੰਗ ਸੇਵਾ ਲਈ ਲੋੜੀਂਦੇ ਪ੍ਰਮਾਣ ਪੱਤਰ ਦਾਖਲ ਕਰੋ।",
+ "Save and continue composing": "ਸੰਭਾਲੋ ਅਤੇ ਵੀਡੀਓ ਬਣਾਉਣਾ ਜਾਰੀ ਰੱਖੋ"
}
diff --git a/apps/web/src/i18n/locales/pl-PL.json b/apps/web/src/i18n/locales/pl-PL.json
index 4e327fd8..d6cd98cd 100644
--- a/apps/web/src/i18n/locales/pl-PL.json
+++ b/apps/web/src/i18n/locales/pl-PL.json
@@ -3334,5 +3334,9 @@
"Save as template": "Zapisz jako szablon",
"Customize subtitle style": "Dostosuj styl napisów",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Nie ma jeszcze zapisanych stylów. Zmień styl w Dostosuj, a następnie wybierz Zapisz jako szablon.",
- "Agent Mode": "Tryb Agent"
+ "Agent Mode": "Tryb Agent",
+ "Subtitle preview progress": "Postęp podglądu napisów",
+ "Adjust timing": "Dostosuj czas",
+ "Enter the required credentials for the selected dubbing service to continue.": "Aby kontynuować, wprowadź wymagane dane uwierzytelniające wybranej usługi dubbingu.",
+ "Save and continue composing": "Zapisz i kontynuuj składanie filmu"
}
diff --git a/apps/web/src/i18n/locales/pt-BR.json b/apps/web/src/i18n/locales/pt-BR.json
index b278d193..b104b293 100644
--- a/apps/web/src/i18n/locales/pt-BR.json
+++ b/apps/web/src/i18n/locales/pt-BR.json
@@ -3334,5 +3334,9 @@
"Save as template": "Salvar como modelo",
"Customize subtitle style": "Personalizar estilo das legendas",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Ainda não há estilos salvos. Ajuste um estilo em Personalizar e depois escolha Salvar como modelo.",
- "Agent Mode": "Modo Agent"
+ "Agent Mode": "Modo Agent",
+ "Subtitle preview progress": "Progresso da prévia de legendas",
+ "Adjust timing": "Ajustar tempo",
+ "Enter the required credentials for the selected dubbing service to continue.": "Insira as credenciais necessárias para o serviço de dublagem selecionado para continuar.",
+ "Save and continue composing": "Salvar e continuar a composição do vídeo"
}
diff --git a/apps/web/src/i18n/locales/ro-RO.json b/apps/web/src/i18n/locales/ro-RO.json
index 5ffd9066..f28408c6 100644
--- a/apps/web/src/i18n/locales/ro-RO.json
+++ b/apps/web/src/i18n/locales/ro-RO.json
@@ -3334,5 +3334,9 @@
"Save as template": "Salvează ca șablon",
"Customize subtitle style": "Personalizează stilul subtitrărilor",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Nu există încă stiluri salvate. Ajustează un stil în Personalizează, apoi alege Salvează ca șablon.",
- "Agent Mode": "Mod Agent"
+ "Agent Mode": "Mod Agent",
+ "Subtitle preview progress": "Progresul previzualizării subtitrărilor",
+ "Adjust timing": "Ajustează sincronizarea",
+ "Enter the required credentials for the selected dubbing service to continue.": "Introduceți acreditările necesare pentru serviciul de dublaj selectat pentru a continua.",
+ "Save and continue composing": "Salvează și continuă compunerea videoclipului"
}
diff --git a/apps/web/src/i18n/locales/ru-RU.json b/apps/web/src/i18n/locales/ru-RU.json
index 76f509f6..5978802a 100644
--- a/apps/web/src/i18n/locales/ru-RU.json
+++ b/apps/web/src/i18n/locales/ru-RU.json
@@ -3334,5 +3334,9 @@
"Save as template": "Сохранить как шаблон",
"Customize subtitle style": "Настроить стиль субтитров",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Сохранённых стилей пока нет. Измените стиль через «Настроить», затем выберите «Сохранить как шаблон».",
- "Agent Mode": "Режим Agent"
+ "Agent Mode": "Режим Agent",
+ "Subtitle preview progress": "Ход предпросмотра субтитров",
+ "Adjust timing": "Настроить время",
+ "Enter the required credentials for the selected dubbing service to continue.": "Для продолжения введите необходимые учётные данные выбранного сервиса озвучивания.",
+ "Save and continue composing": "Сохранить и продолжить сборку видео"
}
diff --git a/apps/web/src/i18n/locales/sk-SK.json b/apps/web/src/i18n/locales/sk-SK.json
index ac988bf1..902daa6f 100644
--- a/apps/web/src/i18n/locales/sk-SK.json
+++ b/apps/web/src/i18n/locales/sk-SK.json
@@ -3334,5 +3334,9 @@
"Save as template": "Uložiť ako šablónu",
"Customize subtitle style": "Prispôsobiť štýl titulkov",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Zatiaľ nemáte uložené štýly. Upravte štýl cez Prispôsobiť a potom vyberte Uložiť ako šablónu.",
- "Agent Mode": "Režim Agent"
+ "Agent Mode": "Režim Agent",
+ "Subtitle preview progress": "Priebeh náhľadu titulkov",
+ "Adjust timing": "Upraviť časovanie",
+ "Enter the required credentials for the selected dubbing service to continue.": "Ak chcete pokračovať, zadajte požadované prihlasovacie údaje pre vybranú dabingovú službu.",
+ "Save and continue composing": "Uložiť a pokračovať v skladaní videa"
}
diff --git a/apps/web/src/i18n/locales/sr-RS.json b/apps/web/src/i18n/locales/sr-RS.json
index 78df98c0..db9f7972 100644
--- a/apps/web/src/i18n/locales/sr-RS.json
+++ b/apps/web/src/i18n/locales/sr-RS.json
@@ -3334,5 +3334,9 @@
"Save as template": "Сачувај као шаблон",
"Customize subtitle style": "Прилагоди стил титлова",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Још нема сачуваних стилова. Уредите стил преко Прилагоди, па изаберите Сачувај као шаблон.",
- "Agent Mode": "Режим Agent"
+ "Agent Mode": "Режим Agent",
+ "Subtitle preview progress": "Напредак прегледа титлова",
+ "Adjust timing": "Подеси време",
+ "Enter the required credentials for the selected dubbing service to continue.": "Унесите потребне акредитиве за изабрану услугу синхронизације да бисте наставили.",
+ "Save and continue composing": "Сачувај и настави састављање видеа"
}
diff --git a/apps/web/src/i18n/locales/sv-SE.json b/apps/web/src/i18n/locales/sv-SE.json
index 156e9125..5b11ed06 100644
--- a/apps/web/src/i18n/locales/sv-SE.json
+++ b/apps/web/src/i18n/locales/sv-SE.json
@@ -3334,5 +3334,9 @@
"Save as template": "Spara som mall",
"Customize subtitle style": "Anpassa undertextstil",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Inga sparade stilar ännu. Justera en stil under Anpassa och välj sedan Spara som mall.",
- "Agent Mode": "Agent-läge"
+ "Agent Mode": "Agent-läge",
+ "Subtitle preview progress": "Förlopp för undertextförhandsvisning",
+ "Adjust timing": "Justera timing",
+ "Enter the required credentials for the selected dubbing service to continue.": "Ange de autentiseringsuppgifter som krävs för den valda dubbningstjänsten för att fortsätta.",
+ "Save and continue composing": "Spara och fortsätt sätta samman videon"
}
diff --git a/apps/web/src/i18n/locales/ta-IN.json b/apps/web/src/i18n/locales/ta-IN.json
index ba2bcaee..d784bdfb 100644
--- a/apps/web/src/i18n/locales/ta-IN.json
+++ b/apps/web/src/i18n/locales/ta-IN.json
@@ -3334,5 +3334,9 @@
"Save as template": "வார்ப்புருவாகச் சேமி",
"Customize subtitle style": "வசன பாணியைத் தனிப்பயனாக்கு",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "சேமித்த பாணிகள் இன்னும் இல்லை. தனிப்பயனாக்கு பகுதியில் பாணியை மாற்றி, வார்ப்புருவாகச் சேமி என்பதைத் தேர்ந்தெடுக்கவும்.",
- "Agent Mode": "Agent பயன்முறை"
+ "Agent Mode": "Agent பயன்முறை",
+ "Subtitle preview progress": "வசன முன்னோட்ட முன்னேற்றம்",
+ "Adjust timing": "நேரத்தைச் சரிசெய்",
+ "Enter the required credentials for the selected dubbing service to continue.": "தொடர, தேர்ந்தெடுக்கப்பட்ட பின்னணிக் குரல் சேவைக்குத் தேவையான சான்றுகளை உள்ளிடவும்.",
+ "Save and continue composing": "சேமித்து காணொளி உருவாக்கத்தைத் தொடரவும்"
}
diff --git a/apps/web/src/i18n/locales/te-IN.json b/apps/web/src/i18n/locales/te-IN.json
index d59b1e6b..cc1e17b6 100644
--- a/apps/web/src/i18n/locales/te-IN.json
+++ b/apps/web/src/i18n/locales/te-IN.json
@@ -3334,5 +3334,9 @@
"Save as template": "టెంప్లేట్‌గా సేవ్ చేయి",
"Customize subtitle style": "సబ్‌టైటిల్ శైలిని అనుకూలీకరించు",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "ఇంకా సేవ్ చేసిన శైలులు లేవు. అనుకూలీకరించులో శైలిని మార్చి, టెంప్లేట్‌గా సేవ్ చేయి ఎంచుకోండి.",
- "Agent Mode": "Agent మోడ్"
+ "Agent Mode": "Agent మోడ్",
+ "Subtitle preview progress": "ఉపశీర్షికల ముందస్తు వీక్షణ పురోగతి",
+ "Adjust timing": "సమయాన్ని సర్దుబాటు చేయండి",
+ "Enter the required credentials for the selected dubbing service to continue.": "కొనసాగించడానికి ఎంచుకున్న డబ్బింగ్ సేవకు అవసరమైన ఆధారాలను నమోదు చేయండి.",
+ "Save and continue composing": "సేవ్ చేసి వీడియో రూపొందించడం కొనసాగించండి"
}
diff --git a/apps/web/src/i18n/locales/th-TH.json b/apps/web/src/i18n/locales/th-TH.json
index 1270afdc..514a2883 100644
--- a/apps/web/src/i18n/locales/th-TH.json
+++ b/apps/web/src/i18n/locales/th-TH.json
@@ -3334,5 +3334,9 @@
"Save as template": "บันทึกเป็นเทมเพลต",
"Customize subtitle style": "ปรับแต่งสไตล์คำบรรยาย",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "ยังไม่มีสไตล์ที่บันทึกไว้ ปรับสไตล์ในปรับแต่ง แล้วเลือกบันทึกเป็นเทมเพลต",
- "Agent Mode": "โหมด Agent"
+ "Agent Mode": "โหมด Agent",
+ "Subtitle preview progress": "ความคืบหน้าการแสดงตัวอย่างคำบรรยาย",
+ "Adjust timing": "ปรับเวลา",
+ "Enter the required credentials for the selected dubbing service to continue.": "ป้อนข้อมูลรับรองที่จำเป็นสำหรับบริการพากย์เสียงที่เลือกเพื่อดำเนินการต่อ",
+ "Save and continue composing": "บันทึกและสร้างวิดีโอต่อ"
}
diff --git a/apps/web/src/i18n/locales/tr-TR.json b/apps/web/src/i18n/locales/tr-TR.json
index 35339d82..76283f8b 100644
--- a/apps/web/src/i18n/locales/tr-TR.json
+++ b/apps/web/src/i18n/locales/tr-TR.json
@@ -3334,5 +3334,9 @@
"Save as template": "Şablon olarak kaydet",
"Customize subtitle style": "Altyazı stilini özelleştir",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Henüz kayıtlı stil yok. Özelleştir bölümünde bir stili düzenleyip Şablon olarak kaydet seçeneğini seçin.",
- "Agent Mode": "Agent Modu"
+ "Agent Mode": "Agent Modu",
+ "Subtitle preview progress": "Altyazı önizleme ilerlemesi",
+ "Adjust timing": "Zamanlamayı ayarla",
+ "Enter the required credentials for the selected dubbing service to continue.": "Devam etmek için seçilen dublaj hizmetinin gerekli kimlik bilgilerini girin.",
+ "Save and continue composing": "Kaydet ve videoyu oluşturmaya devam et"
}
diff --git a/apps/web/src/i18n/locales/uk-UA.json b/apps/web/src/i18n/locales/uk-UA.json
index 2a088b6b..1dc2271c 100644
--- a/apps/web/src/i18n/locales/uk-UA.json
+++ b/apps/web/src/i18n/locales/uk-UA.json
@@ -3334,5 +3334,9 @@
"Save as template": "Зберегти як шаблон",
"Customize subtitle style": "Налаштувати стиль субтитрів",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Збережених стилів ще немає. Змініть стиль через «Налаштувати», а потім виберіть «Зберегти як шаблон».",
- "Agent Mode": "Режим Agent"
+ "Agent Mode": "Режим Agent",
+ "Subtitle preview progress": "Перебіг попереднього перегляду субтитрів",
+ "Adjust timing": "Налаштувати час",
+ "Enter the required credentials for the selected dubbing service to continue.": "Щоб продовжити, введіть необхідні облікові дані вибраного сервісу озвучування.",
+ "Save and continue composing": "Зберегти та продовжити збирання відео"
}
diff --git a/apps/web/src/i18n/locales/ur-PK.json b/apps/web/src/i18n/locales/ur-PK.json
index 5a6660f1..4238d309 100644
--- a/apps/web/src/i18n/locales/ur-PK.json
+++ b/apps/web/src/i18n/locales/ur-PK.json
@@ -3334,5 +3334,9 @@
"Save as template": "ٹیمپلیٹ کے طور پر محفوظ کریں",
"Customize subtitle style": "سب ٹائٹل کا انداز حسب ضرورت بنائیں",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "ابھی کوئی انداز محفوظ نہیں ہے۔ حسب ضرورت بنائیں میں انداز بدلیں، پھر ٹیمپلیٹ کے طور پر محفوظ کریں منتخب کریں۔",
- "Agent Mode": "Agent موڈ"
+ "Agent Mode": "Agent موڈ",
+ "Subtitle preview progress": "سب ٹائٹل پیش نظارے کی پیش رفت",
+ "Adjust timing": "وقت ایڈجسٹ کریں",
+ "Enter the required credentials for the selected dubbing service to continue.": "جاری رکھنے کے لیے منتخب ڈبنگ سروس کی مطلوبہ اسناد درج کریں۔",
+ "Save and continue composing": "محفوظ کریں اور ویڈیو بنانا جاری رکھیں"
}
diff --git a/apps/web/src/i18n/locales/vi-VN.json b/apps/web/src/i18n/locales/vi-VN.json
index 39c59c7e..3cd6ced3 100644
--- a/apps/web/src/i18n/locales/vi-VN.json
+++ b/apps/web/src/i18n/locales/vi-VN.json
@@ -3334,5 +3334,9 @@
"Save as template": "Lưu làm mẫu",
"Customize subtitle style": "Tùy chỉnh kiểu phụ đề",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "Chưa có kiểu đã lưu. Điều chỉnh kiểu trong Tùy chỉnh, rồi chọn Lưu làm mẫu.",
- "Agent Mode": "Chế độ Agent"
+ "Agent Mode": "Chế độ Agent",
+ "Subtitle preview progress": "Tiến trình xem trước phụ đề",
+ "Adjust timing": "Điều chỉnh thời gian",
+ "Enter the required credentials for the selected dubbing service to continue.": "Nhập thông tin xác thực cần thiết cho dịch vụ lồng tiếng đã chọn để tiếp tục.",
+ "Save and continue composing": "Lưu và tiếp tục ghép video"
}
diff --git a/apps/web/src/i18n/locales/zh-TW.json b/apps/web/src/i18n/locales/zh-TW.json
index 2882ad4e..ab913537 100644
--- a/apps/web/src/i18n/locales/zh-TW.json
+++ b/apps/web/src/i18n/locales/zh-TW.json
@@ -3334,5 +3334,9 @@
"Save as template": "另存為範本",
"Customize subtitle style": "自訂字幕樣式",
"No saved styles yet. Adjust a style in Customize, then choose Save as template.": "還沒有儲存的樣式。在自訂樣式裡調整後點「另存為範本」。",
- "Agent Mode": "Agent模式"
+ "Agent Mode": "Agent模式",
+ "Subtitle preview progress": "字幕預覽進度",
+ "Adjust timing": "調整時間",
+ "Enter the required credentials for the selected dubbing service to continue.": "請輸入所選配音服務所需的憑證以繼續。",
+ "Save and continue composing": "儲存並繼續合成"
}
diff --git a/apps/web/src/styles/app-css.test.ts b/apps/web/src/styles/app-css.test.ts
index 1348ceb7..efb2bff6 100644
--- a/apps/web/src/styles/app-css.test.ts
+++ b/apps/web/src/styles/app-css.test.ts
@@ -419,14 +419,14 @@ describe('app CSS visual contracts', () => {
);
});
- it('keeps the schedule select chevron inside the native select click target', () => {
+ it('keeps the schedule select chevron inside the select click target', () => {
const control = schedulesCssBlock('.schedule-select-control');
- const select = schedulesCssBlock('.schedule-select-control select');
- const chevron = schedulesCssBlock('.schedule-select-control svg');
+ const select = schedulesCssBlock('.schedule-select-control :is(select, .app-select-trigger)');
+ const chevron = schedulesCssBlock('.schedule-select-control > svg');
expect(control).toContain('position: relative;');
expect(schedulesCss).toMatch(
- /\.schedule-select-control select,\s*\.schedule-setting-input,\s*\.schedule-time-input\s*\{[^}]*width:\s*100%;/
+ /\.schedule-select-control :is\(select, \.app-select-trigger\),\s*\.schedule-setting-input,\s*\.schedule-time-input\s*\{[^}]*width:\s*100%;/
);
expect(select).toContain('padding-right: 24px;');
expect(chevron).toContain('position: absolute;');