File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
geonode_mapstore_client/client/js/plugins/MetadataEditor/components/_widgets Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const TextWidgetMultiLang = (props) => {
3030 return acc ;
3131 } , { } ) ;
3232
33- const languageLong = ( langCode ) => {
33+ const languageName = ( langCode ) => {
3434 return languageLabels [ langCode ] || langCode ;
3535 } ;
3636
@@ -49,7 +49,7 @@ const TextWidgetMultiLang = (props) => {
4949 onChange ( newValue ) ;
5050 } ;
5151
52- const placeholder = getMessageById ( formContext . messages , "gnviewer.typeText" ) . replace ( "{lang}" , languageLong ( currentLang ) ) ;
52+ const placeholder = getMessageById ( formContext . messages , "gnviewer.typeText" ) . replace ( "{lang}" , languageName ( currentLang ) ) ;
5353
5454 return (
5555 < div className = "form-group field field-string multilang-widget" >
@@ -89,7 +89,7 @@ const TextWidgetMultiLang = (props) => {
8989 className = { `btn btn-xs ${ currentLang === lang ? "btn-primary" : "btn-outline-secondary" } ` }
9090 onClick = { ( ) => setCurrentLang ( lang ) }
9191 >
92- { languageLong ( lang ) }
92+ { languageName ( lang ) }
9393 </ button >
9494 ) ) }
9595 </ div >
You can’t perform that action at this time.
0 commit comments