{workflowCompleted && currentWorkflowId ? 'Sending follow-up message...' : 'Sending message...'}
+{workflowCompleted && currentWorkflowId ? t('chat.sending_followup', 'Sending follow-up message...') : t('chat.sending_message', 'Sending message...')}
Error: {startError}
+{t('chat.error_prefix', 'Error:')} {startError}
Error loading messages: {messagesError}
+{t('chat.error_loading_messages', 'Error loading messages:')} {messagesError}
Loading workflow messages...
+{t('chat.loading_workflow_messages', 'Loading workflow messages...')}
Beginne ein Gespräch, indem du eine Nachricht eingibst, eine Vorlage auswählst oder einen vorherigen Workflow fortsetzt …
+{t('chat.start_conversation', 'Start a conversation by entering a message, selecting a template, or continuing a previous workflow...')}
) : null} {/* Spacer to push workflow status to bottom when there are fewer messages */} diff --git a/src/components/Dashboard/DashboardChat/DashboardChatArea/FilePreviewPopup.module.css b/src/components/Dashboard/DashboardChat/DashboardChatArea/FilePreviewPopup.module.css index e290e97..1aece67 100644 --- a/src/components/Dashboard/DashboardChat/DashboardChatArea/FilePreviewPopup.module.css +++ b/src/components/Dashboard/DashboardChat/DashboardChatArea/FilePreviewPopup.module.css @@ -4,7 +4,7 @@ left: 0; right: 0; bottom: 0; - background-color: rgba(0, 0, 0, 0.7); + background-color: var(--color-bg); display: flex; align-items: center; justify-content: center; @@ -134,7 +134,7 @@ .text_preview { width: 100%; height: 100%; - background-color: var(--color-surface); + background-color: var(--color-bg); border: 1px solid var(--color-gray-disabled); border-radius: 8px; padding: 16px; @@ -185,14 +185,14 @@ .text_numbered { margin: 8px 0; padding-left: 8px; - color: var(--color-gray); + color: var(--color-text); font-family: var(--font-family); } .text_bullet { margin: 4px 0; padding-left: 8px; - color: var(--color-gray); + color: var(--color-text); font-family: var(--font-family); } @@ -204,7 +204,7 @@ border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.9em; - color: var(--color-gray); + color: var(--color-text); } .code_preview { diff --git a/src/components/Dashboard/DashboardChat/DashboardChatArea/FilePreviewPopup.tsx b/src/components/Dashboard/DashboardChat/DashboardChatArea/FilePreviewPopup.tsx index 549e2d5..8685c4a 100644 --- a/src/components/Dashboard/DashboardChat/DashboardChatArea/FilePreviewPopup.tsx +++ b/src/components/Dashboard/DashboardChat/DashboardChatArea/FilePreviewPopup.tsx @@ -3,6 +3,7 @@ import ReactMarkdown from 'react-markdown'; import { MdClose } from "react-icons/md"; import { Document } from "./dashboardChatAreaTypes"; import { useFilePreview } from "../../../../hooks/useWorkflows"; +import { useLanguage } from "../../../../contexts/LanguageContext"; import styles from './FilePreviewPopup.module.css'; interface FilePreviewPopupProps { @@ -12,6 +13,7 @@ interface FilePreviewPopupProps { } const FilePreviewPopup: React.FC- Started: {formatDate(workflow.startedAt)} + {t('chat_history.started', 'Started:')} {formatDate(workflow.startedAt)}
)} {workflow.lastActivity && (- Last Activity: {formatDate(workflow.lastActivity)} + {t('chat_history.last_activity', 'Last Activity:')} {formatDate(workflow.lastActivity)}
)}Settings content will be added here in future updates.
+{t('prompt_settings.content_placeholder')}
Keine Dateien gefunden.
+{t('files.no_files', 'No files found.')}
); } @@ -87,19 +89,19 @@ const DateienAll: React.FCKeine von der KI erstellten Dateien gefunden.
+{t('files.no_ai_files', 'No AI-created files found.')}
); } @@ -87,19 +89,19 @@ const DateienCreated: React.FCDatei hier ablegen...
+{t('files.upload.drop_here', 'Drop file here...')}
) : isUploading ? ( -Lädt hoch...
+{t('files.upload.uploading', 'Uploading...')}
) : (Dateien hierher ziehen
-oder
+{t('files.upload.drag_files', 'Drag files here')}
+{t('files.upload.or', 'or')}
Ausgewählte Datei: {selectedFile.name}
+{t('files.upload.selected_file', 'Selected file:')} {selectedFile.name}
Keine mit Ihnen geteilten Dateien gefunden.
+{t('files.no_shared_files', 'No shared files found.')}
); } @@ -87,19 +89,19 @@ const DateienShared: React.FCKeine hochgeladenen Dateien gefunden.
+{t('files.no_uploaded_files', 'No uploaded files found.')}
); } @@ -87,19 +89,19 @@ const DateienUploads: React.FCLoading files...
} - {error &&Error: {error}
} + {loading &&{t('files.page.loading', 'Loading files...')}
} + {error &&{t('files.page.error', 'Error:')} {error}
} {!loading && !error && (