From db3b4f2dd8cd987f2a2a4b2d75c7d716ab6cca7e Mon Sep 17 00:00:00 2001 From: Luis Herranz Date: Tue, 2 Jul 2024 10:02:57 +0200 Subject: [PATCH] Remove i18n dependency --- src/render.php | 4 ++++ src/view.js | 10 +++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/render.php b/src/render.php index fe508e3..80a69ac 100644 --- a/src/render.php +++ b/src/render.php @@ -80,6 +80,10 @@ ], ]; +wp_interactivity_state( 'booking-form', [ + 'title' => __( 'Booking Form Submission', 'booking-form' ); +]); + ?>
{ return `${ acc }

${ field.label }: ${ field.value }

`; }, '' ); @@ -62,7 +58,7 @@ const { actions } = store( 'booking-form', { path: '/booking-form/v1/booking', method: 'POST', data: { - title, + title: state.title, content, }, } );