@@ -1443,8 +1443,8 @@ class Activity {
14431443
14441444 const importConfirm = document . createElement ( "button" ) ;
14451445 importConfirm . classList . add ( "confirm-button" ) ;
1446- importConfirm . textContent = "Confirm" ;
1447- this . addEventListener ( importConfirm , "click" , ( ) => {
1446+ importConfirm . textContent = _ ( "Confirm" ) ;
1447+ importConfirm . addEventListener ( "click" , ( ) => {
14481448 const maxNoteBlocks = select . value ;
14491449 transcribeMidi ( midi , maxNoteBlocks ) ;
14501450 document . body . removeChild ( modal ) ;
@@ -1453,8 +1453,8 @@ class Activity {
14531453
14541454 const cancelBtn = document . createElement ( "button" ) ;
14551455 cancelBtn . classList . add ( "cancel-button" ) ;
1456- cancelBtn . textContent = "Cancel" ;
1457- this . addEventListener ( cancelBtn , "click" , ( ) => {
1456+ cancelBtn . textContent = _ ( "Cancel" ) ;
1457+ cancelBtn . addEventListener ( "click" , ( ) => {
14581458 document . body . removeChild ( modal ) ;
14591459 } ) ;
14601460 modal . appendChild ( cancelBtn ) ;
@@ -1486,7 +1486,7 @@ class Activity {
14861486
14871487 const confirmBtn = document . createElement ( "button" ) ;
14881488 confirmBtn . classList . add ( "confirm-button" ) ;
1489- confirmBtn . textContent = "Confirm" ;
1489+ confirmBtn . textContent = _ ( "Confirm" ) ;
14901490 confirmBtn . style . backgroundColor = platformColor . blueButton ;
14911491 confirmBtn . style . color = "white" ;
14921492 confirmBtn . style . border = "none" ;
@@ -1502,7 +1502,7 @@ class Activity {
15021502
15031503 const cancelBtn = document . createElement ( "button" ) ;
15041504 cancelBtn . classList . add ( "cancel-button" ) ;
1505- cancelBtn . textContent = "Cancel" ;
1505+ cancelBtn . textContent = _ ( "Cancel" ) ;
15061506 cancelBtn . style . backgroundColor = "#f1f1f1" ;
15071507 cancelBtn . style . color = "black" ;
15081508 cancelBtn . style . border = "none" ;
0 commit comments