Skip to content

🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"

TypeScript

fix(i18n): SceneEditorPanel section 标题和复制提示改用 i18n key

Connordeace6e8f247
diff --git a/web/src/locales/en-US.ts b/web/src/locales/en-US.ts
index 40838a8..4b3342d 100644
--- a/web/src/locales/en-US.ts
+++ b/web/src/locales/en-US.ts
@@ -85,6 +85,8 @@ export default {
addToTimeline: 'Add to Timeline',
deleteAsset: 'Delete Asset',
confirmDelete: 'Confirm Delete',
+ copy: 'Copy',
+ copied: 'Copied',
tip: 'Tip',
batchMode: 'Batch Mode',
batchDelete: 'Batch Delete',
@@ -707,6 +709,11 @@ export default {
noPreview: 'No preview, generate an image first',
selectStoryboard: 'Select a storyboard from the left',
currentPreviewAlt: 'Current storyboard preview',
+ // SceneEditorPanel section titles
+ sectionSceneElements: 'Scene Elements',
+ sectionShotSettings: 'Shot Settings',
+ sectionContent: 'Content',
+ sectionAudio: 'Audio & Atmosphere',
imageStatus: 'Img',
statusNone: 'Not Generated',
statusGenerating: 'Generating',
diff --git a/web/src/locales/zh-CN.ts b/web/src/locales/zh-CN.ts
index 0ff9abd..50d4de1 100644
--- a/web/src/locales/zh-CN.ts
+++ b/web/src/locales/zh-CN.ts
@@ -75,6 +75,8 @@ export default {
addToTimeline: '添加到时间线',
deleteAsset: '删除素材',
confirmDelete: '确认删除',
+ copy: '复制',
+ copied: '已复制',
tip: '提示',
status: '状态',
createdAt: '创建时间',
@@ -623,6 +625,11 @@ export default {
noPreview: '暂无预览图,请先生成图片',
selectStoryboard: '请从左侧选择分镜',
currentPreviewAlt: '当前分镜预览',
+ // SceneEditorPanel section titles
+ sectionSceneElements: '场景要素',
+ sectionShotSettings: '镜头设置',
+ sectionContent: '内容描述',
+ sectionAudio: '音频氛围',
// StoryboardList
imageStatus: '图',
statusNone: '未生成',
diff --git a/web/src/views/drama/professional/SceneEditorPanel.vue b/web/src/views/drama/professional/SceneEditorPanel.vue
index c6e4d3d..90dc4e0 100644
--- a/web/src/views/drama/professional/SceneEditorPanel.vue
+++ b/web/src/views/drama/professional/SceneEditorPanel.vue
@@ -27,7 +27,7 @@
<div class="panel-scroll">
<!-- Section 1: 场景要素 -->
- <PanelSection title="场景要素" icon="🎬" :default-open="true">
+ <PanelSection :title="$t('professionalEditor.sectionSceneElements')" icon="🎬" :default-open="true">
<!-- 场景 -->
<div class="field-group">
<div class="field-label">
@@ -84,7 +84,7 @@
</PanelSection>
<!-- Section 2: 镜头设置 -->
- <PanelSection title="镜头设置" icon="🎥" :default-open="true">
+ <PanelSection :title="$t('professionalEditor.sectionShotSettings')" icon="🎥" :default-open="true">
<div class="shot-row">
<div class="shot-item">
<label>{{ $t('editor.shotType') }}</label>
@@ -137,7 +137,7 @@
</PanelSection>
<!-- Section 3: 内容描述 -->
- <PanelSection title="内容描述" icon="📝" :default-open="true">
+ <PanelSection :title="$t('professionalEditor.sectionContent')" icon="📝" :default-open="true">
<div class="field-group">
<div class="field-label">{{ $t('editor.action') }}</div>
<el-input v-model="currentStoryboard.action" type="textarea" :rows="3" :placeholder="$t('editor.actionPlaceholder')" @blur="$emit('save-field', 'action')" />
@@ -157,7 +157,7 @@
</PanelSection>
<!-- Section 4: 音频氛围(默认折叠) -->
- <PanelSection title="音频氛围" icon="🔊" :default-open="false">
+ <PanelSection :title="$t('professionalEditor.sectionAudio')" icon="🔊" :default-open="false">
<div class="field-group">
<div class="field-label">{{ $t('editor.soundEffects') }}</div>
<el-input v-model="currentStoryboard.sound_effect" type="textarea" :rows="2" :placeholder="$t('editor.soundEffectsPlaceholder')" @blur="$emit('save-field', 'sound_effect')" />
@@ -330,7 +330,7 @@ const recentVideos = computed(() =>
const copyPrompt = () => {
if (props.currentStoryboard?.video_prompt) {
navigator.clipboard.writeText(props.currentStoryboard.video_prompt)
- ElMessage.success('已复制')
+ ElMessage.success(t('common.copied'))
}
}
</script>