@@ -76,15 +76,15 @@ const HelpEditorForm = (props) => {
7676 method : 'POST' ,
7777 body : formData ,
7878 } ) . then ( ( response ) => {
79- console . log ( response ) ;
80-
8179 if ( response . status !== 200 ) {
8280 swal . fire ( {
83- title : 'Content update unsuccessful.' ,
84- text : 'Help content cannot be added to an instrument '
81+ title : t ( 'Content update unsuccessful.' ,
82+ { ns : 'help_editor' } ) ,
83+ text : t ( 'Help content cannot be added to an instrument '
8584 + 'that has already been registered.' ,
85+ { ns : 'help_editor' } ) ,
8686 type : 'error' ,
87- confirmButtonText : 'Try again' ,
87+ confirmButtonText : t ( 'Try again' , { ns : 'help_editor' } ) ,
8888 } ) ;
8989 console . error ( response . status ) ;
9090 return ;
@@ -93,7 +93,7 @@ const HelpEditorForm = (props) => {
9393 title : t ( 'Content update successful!' ,
9494 { ns : 'help_editor' } ) ,
9595 type : 'success' ,
96- confirmButtonText : t ( 'Close' , { ns : 'help_editor ' } ) ,
96+ confirmButtonText : t ( 'Close' , { ns : 'loris ' } ) ,
9797 } ) ;
9898 } ) . catch ( ( error ) => {
9999 console . error ( error ) ;
@@ -120,7 +120,7 @@ const HelpEditorForm = (props) => {
120120
121121 < SelectElement
122122 name = 'instrument'
123- label = 'Instrument'
123+ label = { t ( 'Instrument' , { ns : 'help_editor' } ) }
124124 emptyOption = { true }
125125 options = { props . instrumentslist }
126126 onUserInput = { onUserInput }
0 commit comments