Translation of the download button into English

This commit is contained in:
lockbitchat
2025-08-21 17:45:43 -04:00
parent cef5654cf8
commit 81b0e4bd3e
2 changed files with 5 additions and 6 deletions

View File

@@ -3213,7 +3213,7 @@
addMessageWithAutoScroll(`❌ File upload error: ${String(e?.message || e)}`, 'system'); addMessageWithAutoScroll(`❌ File upload error: ${String(e?.message || e)}`, 'system');
} }
} }
}, 'Скачать') }, 'Download')
]); ]);
addMessageWithAutoScroll(downloadMessage, 'system'); addMessageWithAutoScroll(downloadMessage, 'system');

View File

@@ -221,11 +221,11 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => {
React.createElement('p', { React.createElement('p', {
key: 'text', key: 'text',
className: "text-primary font-medium" className: "text-primary font-medium"
}, 'Перетащите файлы сюда или нажмите для выбора'), }, 'Drag files here or click to select'),
React.createElement('p', { React.createElement('p', {
key: 'subtext', key: 'subtext',
className: "text-muted text-sm" className: "text-muted text-sm"
}, 'Максимальный размер: 100 МБ на файл') }, 'Maximum size: 100 MB per file')
]) ])
]), ]),
@@ -351,7 +351,6 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => {
}, formatFileSize(transfer.fileSize)) }, formatFileSize(transfer.fileSize))
]), ]),
React.createElement('div', { key: 'actions', className: 'flex items-center space-x-2' }, [ React.createElement('div', { key: 'actions', className: 'flex items-center space-x-2' }, [
// Кнопка скачать, если файл уже готов (есть в readyFiles)
(() => { (() => {
const rf = readyFiles.find(f => f.fileId === transfer.fileId); const rf = readyFiles.find(f => f.fileId === transfer.fileId);
if (!rf || transfer.status !== 'completed') return null; if (!rf || transfer.status !== 'completed') return null;
@@ -367,12 +366,12 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => {
a.click(); a.click();
rf.revokeObjectURL(url); rf.revokeObjectURL(url);
} catch (e) { } catch (e) {
alert('Не удалось начать скачивание: ' + e.message); alert('Failed to start download: ' + e.message);
} }
} }
}, [ }, [
React.createElement('i', { key: 'i', className: 'fas fa-download mr-1' }), React.createElement('i', { key: 'i', className: 'fas fa-download mr-1' }),
'Скачать' 'Download'
]); ]);
})(), })(),
React.createElement('button', { React.createElement('button', {