From 81b0e4bd3e668d3a5c82dcfe0a8ae348f035ae68 Mon Sep 17 00:00:00 2001 From: lockbitchat Date: Thu, 21 Aug 2025 17:45:43 -0400 Subject: [PATCH] Translation of the download button into English --- index.html | 2 +- src/components/ui/FileTransfer.jsx | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index d40f953..5c0c3ed 100644 --- a/index.html +++ b/index.html @@ -3213,7 +3213,7 @@ addMessageWithAutoScroll(`❌ File upload error: ${String(e?.message || e)}`, 'system'); } } - }, 'Скачать') + }, 'Download') ]); addMessageWithAutoScroll(downloadMessage, 'system'); diff --git a/src/components/ui/FileTransfer.jsx b/src/components/ui/FileTransfer.jsx index 5221405..f031c91 100644 --- a/src/components/ui/FileTransfer.jsx +++ b/src/components/ui/FileTransfer.jsx @@ -221,11 +221,11 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => { React.createElement('p', { key: 'text', className: "text-primary font-medium" - }, 'Перетащите файлы сюда или нажмите для выбора'), + }, 'Drag files here or click to select'), React.createElement('p', { key: 'subtext', className: "text-muted text-sm" - }, 'Максимальный размер: 100 МБ на файл') + }, 'Maximum size: 100 MB per file') ]) ]), @@ -351,7 +351,6 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => { }, formatFileSize(transfer.fileSize)) ]), React.createElement('div', { key: 'actions', className: 'flex items-center space-x-2' }, [ - // Кнопка скачать, если файл уже готов (есть в readyFiles) (() => { const rf = readyFiles.find(f => f.fileId === transfer.fileId); if (!rf || transfer.status !== 'completed') return null; @@ -367,12 +366,12 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => { a.click(); rf.revokeObjectURL(url); } catch (e) { - alert('Не удалось начать скачивание: ' + e.message); + alert('Failed to start download: ' + e.message); } } }, [ React.createElement('i', { key: 'i', className: 'fas fa-download mr-1' }), - 'Скачать' + 'Download' ]); })(), React.createElement('button', {