@@ -11,6 +11,7 @@ import path from "node:path";
11
11
12
12
import * as ConfigUtil from "../common/config-util.ts" ;
13
13
import * as LinkUtil from "../common/link-util.ts" ;
14
+ import * as t from "../common/translation-util.ts" ;
14
15
15
16
import { send } from "./typed-ipc-main.ts" ;
16
17
@@ -125,8 +126,8 @@ export default function handleExternalLink(
125
126
downloadPath,
126
127
async completed ( filePath : string , fileName : string ) {
127
128
const downloadNotification = new Notification ( {
128
- title : "Download Complete" ,
129
- body : ` Click to show ${ fileName } in folder` ,
129
+ title : t . __ ( "Download Complete" ) ,
130
+ body : t . __ ( " Click to show {{{ fileName}}} in folder" , { fileName } ) ,
130
131
silent : true , // We'll play our own sound - ding.ogg
131
132
} ) ;
132
133
downloadNotification . on ( "click" , ( ) => {
@@ -149,8 +150,8 @@ export default function handleExternalLink(
149
150
if ( state !== "cancelled" ) {
150
151
if ( ConfigUtil . getConfigItem ( "promptDownload" , false ) ) {
151
152
new Notification ( {
152
- title : "Download Complete" ,
153
- body : "Download failed" ,
153
+ title : t . __ ( "Download Complete" ) ,
154
+ body : t . __ ( "Download failed" ) ,
154
155
} ) . show ( ) ;
155
156
} else {
156
157
contents . downloadURL ( url . href ) ;
0 commit comments