From 55d62eacd25ed2fb49876187aed68bff58ee26bf Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Fri, 21 Jun 2024 10:14:02 -0400 Subject: [PATCH] Mark the string for translation. --- src/components/post-date-query-controls.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/components/post-date-query-controls.js b/src/components/post-date-query-controls.js index 64f6090..131a51b 100644 --- a/src/components/post-date-query-controls.js +++ b/src/components/post-date-query-controls.js @@ -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( {