Skip to content

Commit

Permalink
Merge pull request #73 from ryanwelcher/fix/date-relationship-transla…
Browse files Browse the repository at this point in the history
…tions

Marking Date relationship options for translation
  • Loading branch information
ryanwelcher authored Jun 21, 2024
2 parents cb8075e + 55d62ea commit 7ab11d4
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/components/post-date-query-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,22 @@ export const PostDateQueryControls = ( { attributes, setAttributes } ) => {
label={ __( 'Date Relationship', 'advanced-query-loop' ) }
value={ relationFromQuery }
options={ [
{ label: 'None', value: '' },
{ label: 'Before', value: 'before' },
{ label: 'After', value: 'after' },
{ label: 'Between', value: 'between' },
{
label: __( 'None', 'advanced-query-loop' ),
value: '',
},
{
label: __( 'Before', 'advanced-query-loop' ),
value: 'before',
},
{
label: __( 'After', 'advanced-query-loop' ),
value: 'after',
},
{
label: __( 'Between', 'advanced-query-loop' ),
value: 'between',
},
] }
onChange={ ( relation ) => {
setAttributes( {
Expand Down

0 comments on commit 7ab11d4

Please sign in to comment.