From da042b5749e692c5cb254254b1dd892e8f447321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Thu, 28 May 2026 07:51:41 +0300 Subject: [PATCH] feat: add pause, resume, and stop download IPC handlers and implement multilingual UI support --- main.js | 15 ++ src/index.html | 16 +++ src/locales/ar.json | 5 +- src/locales/de.json | 5 +- src/locales/en.json | 5 +- src/locales/ru.json | 5 +- src/locales/tr.json | 5 +- utils/downloader.js | 333 +++++++++++++++++++++++++++++++++++--------- 8 files changed, 316 insertions(+), 73 deletions(-) diff --git a/main.js b/main.js index cc82cf1..4dbc9d9 100644 --- a/main.js +++ b/main.js @@ -93,6 +93,21 @@ ipcMain.handle('download-media', async (event, { items, browser }) => { } }); +// IPC Handler: Pause Download +ipcMain.handle('pause-download', () => { + return downloader.pauseDownload(); +}); + +// IPC Handler: Resume Download +ipcMain.handle('resume-download', () => { + return downloader.resumeDownload(); +}); + +// IPC Handler: Stop Download +ipcMain.handle('stop-download', () => { + return downloader.stopDownload(); +}); + // IPC Handler: Open Path in File Explorer ipcMain.handle('open-path', async (event, folderPath) => { try { diff --git a/src/index.html b/src/index.html index 944ed5a..c687f9d 100644 --- a/src/index.html +++ b/src/index.html @@ -246,6 +246,22 @@

Lütfen bekleyin...

+ + +
+ + + +