@@ -11,6 +11,7 @@ import path from "node:path";
1111
1212import * as ConfigUtil from "../common/config-util.ts" ;
1313import * as LinkUtil from "../common/link-util.ts" ;
14+ import * as t from "../common/translation-util.ts" ;
1415
1516import { send } from "./typed-ipc-main.ts" ;
1617
@@ -125,8 +126,8 @@ export default function handleExternalLink(
125126 downloadPath,
126127 async completed ( filePath : string , fileName : string ) {
127128 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 } ) ,
130131 silent : true , // We'll play our own sound - ding.ogg
131132 } ) ;
132133 downloadNotification . on ( "click" , ( ) => {
@@ -149,8 +150,8 @@ export default function handleExternalLink(
149150 if ( state !== "cancelled" ) {
150151 if ( ConfigUtil . getConfigItem ( "promptDownload" , false ) ) {
151152 new Notification ( {
152- title : "Download Complete" ,
153- body : "Download failed" ,
153+ title : t . __ ( "Download Complete" ) ,
154+ body : t . __ ( "Download failed" ) ,
154155 } ) . show ( ) ;
155156 } else {
156157 contents . downloadURL ( url . href ) ;
0 commit comments