From 2c12fb7ae4fa650c1609fc738478576f21b6b6f8 Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Wed, 18 Sep 2024 22:33:56 +0200 Subject: [PATCH] Fix: Made string translatable in withButtons.tsx (#7517) --- .../onboarding/steps/filters/withButtons.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/FormBuilder/resources/js/form-builder/src/components/onboarding/steps/filters/withButtons.tsx b/src/FormBuilder/resources/js/form-builder/src/components/onboarding/steps/filters/withButtons.tsx index 0a40af8eb1..459b54998a 100644 --- a/src/FormBuilder/resources/js/form-builder/src/components/onboarding/steps/filters/withButtons.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/components/onboarding/steps/filters/withButtons.tsx @@ -1,31 +1,33 @@ +import {__} from '@wordpress/i18n'; + const withButtons = (steps) => { const previous = { classes: 'shepherd-button-secondary', - text: 'Previous', + text: __('Previous', 'give'), type: 'back', }; const next = { classes: 'shepherd-button-primary', - text: 'Next', + text: __('Next', 'give'), type: 'next', }; const nextVariant = { classes: 'shepherd-button-primary', - text: 'Got it', + text: __('Got it', 'give'), type: 'next', }; const complete = { classes: 'shepherd-button-primary', - text: 'Got it', + text: __('Got it', 'give'), type: 'complete', }; const okay = { classes: 'shepherd-button-primary shepherd-button-primary--tools', - text: 'Okay', + text: __('Okay', 'give'), type: 'complete', };