Skip to content

Commit

Permalink
Internationalize Nivo block #47
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Aug 31, 2021
1 parent b810495 commit 21eedba
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/oik-nivo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,10 @@ const blockAttributes = {
* But I don't know how map() works so it all appears to be arse about face.
*/
const themeOptions =
{ default: "Default",
bar: "Bar",
{ default: __("Default", 'oik-blocks' ),
bar: __("Bar", 'oik-blocks' ),
};




/**
* Register
*/
Expand Down Expand Up @@ -126,11 +123,11 @@ export default registerBlockType(
return [


<InspectorControls key="ic-nivo">
<PanelBody key="pb-nivo">
<TextControl label="Theme" value={props.attributes.theme} id="theme" onChange={onChangeTheme} />
<TextControl label="IDs" value={props.attributes.id} onChange={onChangeId} />
<TextControl label="Effect" value={props.attributes.effect} onChange={ partial( onChangeAttr, 'effect' )} />
<InspectorControls>
<PanelBody>
<TextControl label={__("Theme",'oik-blocks' )} value={props.attributes.theme} id="theme" onChange={onChangeTheme} />
<TextControl label={__("IDs", 'oik-blocks' )} value={props.attributes.id} onChange={onChangeId} />
<TextControl label={__("Effect",'oik-blocks' )} value={props.attributes.effect} onChange={ partial( onChangeAttr, 'effect' )} />


<SelectControl label="t2" value={props.attributes.theme}
Expand Down Expand Up @@ -163,4 +160,4 @@ export default registerBlockType(
return( <RawHTML {...blockProps}>{chatts}</RawHTML> );
}
}
);
);

0 comments on commit 21eedba

Please sign in to comment.