@@ -80,11 +80,13 @@ const HelpEditorForm = (props) => {
8080
8181 if ( response . status !== 200 ) {
8282 swal . fire ( {
83- title : 'Content update unsuccessful.' ,
84- text : 'Help content cannot be added to an instrument '
83+ title : t ( 'Content update unsuccessful.' ,
84+ { ns : 'help_editor' } ) ,
85+ text : t ( 'Help content cannot be added to an instrument '
8586 + 'that has already been registered.' ,
87+ { ns : 'help_editor' } ) ,
8688 type : 'error' ,
87- confirmButtonText : 'Try again' ,
89+ confirmButtonText : t ( 'Try again' , { ns : 'help_editor' } ) ,
8890 } ) ;
8991 console . error ( response . status ) ;
9092 return ;
@@ -93,7 +95,7 @@ const HelpEditorForm = (props) => {
9395 title : t ( 'Content update successful!' ,
9496 { ns : 'help_editor' } ) ,
9597 type : 'success' ,
96- confirmButtonText : t ( 'Close' , { ns : 'help_editor ' } ) ,
98+ confirmButtonText : t ( 'Close' , { ns : 'loris ' } ) ,
9799 } ) ;
98100 } ) . catch ( ( error ) => {
99101 console . error ( error ) ;
@@ -120,7 +122,7 @@ const HelpEditorForm = (props) => {
120122
121123 < SelectElement
122124 name = 'instrument'
123- label = 'Instrument'
125+ label = { t ( 'Instrument' , { ns : 'help_editor' } ) }
124126 emptyOption = { true }
125127 options = { props . instrumentslist }
126128 onUserInput = { onUserInput }
0 commit comments