@@ -560,15 +560,17 @@ class SQLMapGenerator {
560560 const command = this . generateCommand ( ) ;
561561 const copyBtn = document . getElementById ( 'copyBtn' ) ;
562562 const copyText = document . getElementById ( 'copyText' ) ;
563+ const txt_command_copy_clipboard = 'COPY COMMAND TO CLIPBOARD' ;
564+ const txt_command_copy_coppied = 'COMMAND COPIED!' ;
563565
564566 try {
565567 await navigator . clipboard . writeText ( command ) ;
566568 copyBtn . classList . add ( 'copying' ) ;
567- copyText . textContent = 'Command Copied!' ;
569+ copyText . textContent = txt_command_copy_coppied ;
568570
569571 setTimeout ( ( ) => {
570572 copyBtn . classList . remove ( 'copying' ) ;
571- copyText . textContent = 'COPY COMMAND TO A CLIPBOARD' ;
573+ copyText . textContent = txt_command_copy_clipboard ;
572574 } , 3000 ) ;
573575 } catch ( err ) {
574576 // Fallback for older browsers
@@ -579,9 +581,9 @@ class SQLMapGenerator {
579581 document . execCommand ( 'copy' ) ;
580582 document . body . removeChild ( textArea ) ;
581583
582- copyText . textContent = 'Command Copied!' ;
584+ copyText . textContent = txt_command_copy_coppied ;
583585 setTimeout ( ( ) => {
584- copyText . textContent = 'COPY COMMAND TO A CLIPBOARD' ;
586+ copyText . textContent = txt_command_copy_clipboard ;
585587 } , 3000 ) ;
586588 }
587589 }
@@ -591,15 +593,17 @@ class SQLMapGenerator {
591593 const command = location . href . replace ( location . hash , "" ) + "#" + serializedCommand ;
592594 const copyUrlBtn = document . getElementById ( 'copyUrlBtn' ) ;
593595 const copyUrlText = document . getElementById ( 'copyUrlText' ) ;
596+ const txt_command_url_clipboard = 'COPY CONFIG URL' ;
597+ const txt_command_url_coppied = 'URL COPIED!' ;
594598
595599 try {
596600 await navigator . clipboard . writeText ( command ) ;
597601 copyUrlBtn . classList . add ( 'copying' ) ;
598- copyUrlText . textContent = 'Copied!' ;
602+ copyUrlText . textContent = txt_command_url_coppied ;
599603
600604 setTimeout ( ( ) => {
601605 copyUrlBtn . classList . remove ( 'copying' ) ;
602- copyUrlText . textContent = 'COPY URL WITH THIS CONFIG' ;
606+ copyUrlText . textContent = txt_command_url_clipboard ;
603607 } , 3000 ) ;
604608 location . replace ( "#" + serializedCommand ) ;
605609
@@ -612,9 +616,9 @@ class SQLMapGenerator {
612616 document . execCommand ( 'copy' ) ;
613617 document . body . removeChild ( textArea ) ;
614618
615- copyUrlText . textContent = 'URL Copied!' ;
619+ copyUrlText . textContent = txt_command_url_coppied ;
616620 setTimeout ( ( ) => {
617- copyUrlText . textContent = 'COPY URL WITH THIS CONFIG' ;
621+ copyUrlText . textContent = txt_command_url_clipboard ;
618622 } , 3000 ) ;
619623 location . replace ( "#" + serializedCommand ) ;
620624 }
0 commit comments