Skip to content

Commit 81b0e4b

Browse files
committed
Translation of the download button into English
1 parent cef5654 commit 81b0e4b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3213,7 +3213,7 @@ <h3 key="title" className="text-2xl font-semibold text-primary mb-3">
32133213
addMessageWithAutoScroll(`❌ File upload error: ${String(e?.message || e)}`, 'system');
32143214
}
32153215
}
3216-
}, 'Скачать')
3216+
}, 'Download')
32173217
]);
32183218

32193219
addMessageWithAutoScroll(downloadMessage, 'system');

src/components/ui/FileTransfer.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => {
221221
React.createElement('p', {
222222
key: 'text',
223223
className: "text-primary font-medium"
224-
}, 'Перетащите файлы сюда или нажмите для выбора'),
224+
}, 'Drag files here or click to select'),
225225
React.createElement('p', {
226226
key: 'subtext',
227227
className: "text-muted text-sm"
228-
}, 'Максимальный размер: 100 МБ на файл')
228+
}, 'Maximum size: 100 MB per file')
229229
])
230230
]),
231231

@@ -351,7 +351,6 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => {
351351
}, formatFileSize(transfer.fileSize))
352352
]),
353353
React.createElement('div', { key: 'actions', className: 'flex items-center space-x-2' }, [
354-
// Кнопка скачать, если файл уже готов (есть в readyFiles)
355354
(() => {
356355
const rf = readyFiles.find(f => f.fileId === transfer.fileId);
357356
if (!rf || transfer.status !== 'completed') return null;
@@ -367,12 +366,12 @@ const FileTransferComponent = ({ webrtcManager, isConnected }) => {
367366
a.click();
368367
rf.revokeObjectURL(url);
369368
} catch (e) {
370-
alert('Не удалось начать скачивание: ' + e.message);
369+
alert('Failed to start download: ' + e.message);
371370
}
372371
}
373372
}, [
374373
React.createElement('i', { key: 'i', className: 'fas fa-download mr-1' }),
375-
'Скачать'
374+
'Download'
376375
]);
377376
})(),
378377
React.createElement('button', {

0 commit comments

Comments
 (0)