Skip to content

Commit

Permalink
Internationalize Person block #47
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Aug 31, 2021
1 parent 21eedba commit ee38aae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/oik-person/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import { Fragment} from '@wordpress/element';
import { map, partial } from 'lodash';

var themeOptions = {
none: "Logos",
//dash: "Dashicons",
gener: "Genericons",
none: __("Logos", 'oik-blocks' ),
//dash: __("Dashicons", 'oik-blocks' ),
gener: __("Genericons", 'oik-blocks' ),
};
themeOptions = map( themeOptions, ( key, label ) => ( { value: label, label: key } ) );

Expand Down Expand Up @@ -68,17 +68,17 @@ export default registerBlockType(
<InspectorControls>
<PanelBody>
<PanelRow>
<TextControl label="User"
<TextControl label={__("User", 'oik-blocks' )}
value={ props.attributes.user }
onChange={ onChangeUser }
/>
</PanelRow>
<PanelRow>
<SelectControl label="Follow me icons style" value={ props.attributes.theme } options={ themeOptions } onChange={ onChangeTheme } />
<SelectControl label={__("Follow me icons style",'oik-blocks' )} value={ props.attributes.theme } options={ themeOptions } onChange={ onChangeTheme } />
</PanelRow>

<PanelRow>
<TextControl label="Fields"
<TextControl label={__("Fields",'oik-blocks' )}
value={ props.attributes.fields }
onChange={ onChangeFields }
/>
Expand All @@ -105,4 +105,4 @@ export default registerBlockType(
return null;
},
},
);
);

0 comments on commit ee38aae

Please sign in to comment.