diff --git a/app/generationRecord.tsx b/app/generationRecord.tsx index 72396e4..1b0612d 100644 --- a/app/generationRecord.tsx +++ b/app/generationRecord.tsx @@ -68,39 +68,6 @@ export default function GenerationRecordScreen() { } } - if (loading && generations.length === 0) { - return ( - - - - - router.back()}> - - - {t('generationRecord.title')} - - - - - ) - } - - if (error && generations.length === 0) { - return ( - - - - - router.back()}> - - - {t('generationRecord.title')} - - - - - ) - } const renderItem = ({ item }: { item: TemplateGeneration }) => ( @@ -155,6 +122,41 @@ export default function GenerationRecordScreen() { ) + if (loading && generations.length === 0) { + return ( + + + + + router.back()}> + + + {t('generationRecord.title')} + + + + + ) + } + + if (error && generations.length === 0) { + return ( + + + + + router.back()}> + + + {t('generationRecord.title')} + + + + + ) + } + + return ( diff --git a/locales/en-US.json b/locales/en-US.json index 2beba43..6e6e957 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -131,7 +131,10 @@ "descriptionPlaceholder": "Describe the video effect you want", "generate": "Generate Video", "startGenerating": "Start Generating Video", - "generatingMessage": "Video is being generated, please wait..." + "generatingMessage": "Video is being generated, please wait...", + "loading": "Loading...", + "noFormFields": "No form fields to fill", + "generating": "Generating..." }, "generationRecord": { "title": "Generation Record", @@ -163,7 +166,9 @@ "fillForm": "Fill Form", "startCreating": "Start Creating", "generations": "My Generations", - "generationStarted": "Generation has started" + "generationStarted": "Generation has started", + "uploadSuccess": "Upload successful", + "uploadFailed": "Upload failed, please try again" }, "dynamicForm": { "uploadFailed": "Upload failed, please try again", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index ff33dd0..59faab3 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -131,7 +131,10 @@ "descriptionPlaceholder": "描述你想要的视频效果", "generate": "生成视频", "startGenerating": "开始生成视频", - "generatingMessage": "视频正在生成中,请稍候..." + "generatingMessage": "视频正在生成中,请稍候...", + "loading": "加载中...", + "noFormFields": "暂无可填写的表单项", + "generating": "生成中..." }, "generationRecord": { "title": "生成记录", @@ -163,7 +166,9 @@ "fillForm": "填写表单", "startCreating": "开始创作", "generations": "作品列表", - "generationStarted": "生成已开始" + "generationStarted": "生成已开始", + "uploadSuccess": "上传成功", + "uploadFailed": "上传失败,请重试" }, "dynamicForm": { "uploadFailed": "上传失败,请重试",