feat(pdf): improve save filter on Windows

This commit is contained in:
Elian Doran 2025-01-31 22:51:58 +02:00
parent 7813c896c3
commit d4965e8d41
No known key found for this signature in database
3 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import { formatDownloadTitle, isDev, isMac, isWindows } from "./utils.js";
import { fileURLToPath } from "url";
import { dirname } from "path";
import { t } from "i18next";
// Prevent the window being garbage collected
let mainWindow: BrowserWindow | null;
@ -61,7 +62,7 @@ ipcMain.on("export-as-pdf", async (e, opts: ExportAsPdfOpts) => {
defaultPath: formatDownloadTitle(opts.title, "file", "application/pdf"),
filters: [
{
name: "PDF",
name: t("pdf.export_filter"),
extensions: [ "pdf" ]
}
]

View File

@ -253,5 +253,8 @@
},
"content_renderer": {
"note-cannot-be-displayed": "This note type cannot be displayed."
},
"pdf": {
"export_filter": "PDF Document (*.pdf)"
}
}

View File

@ -254,5 +254,8 @@
},
"content_renderer": {
"note-cannot-be-displayed": "Acest tip de notiță nu poate fi afișat."
},
"pdf": {
"export_filter": "Document PDF (*.pdf)"
}
}