Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: hardcoded errors internationalized

Tonho657303f51858
diff --git a/src/lib/stores/download-listener.ts b/src/lib/stores/download-listener.ts
index 519b9045..083713f5 100644
--- a/src/lib/stores/download-listener.ts
+++ b/src/lib/stores/download-listener.ts
@@ -242,7 +242,7 @@ export async function initDownloadListener(): Promise<() => void> {
markFileComplete(d.id, d.result.output_path, d.result.file_size_bytes);
showToast("success", tr("convert.toast_complete"));
} else {
- const errorMsg = d.error ?? d.result?.error ?? "Unknown error";
+ const errorMsg = d.error ?? d.result?.error ?? tr("common.unknown_error");
markFileError(d.id, errorMsg);
showToast("error", `${tr("convert.toast_error")} — ${errorMsg}`);
}