Skip to content

Commit

Permalink
Fix: Made string translatable in withButtons.tsx (#7517)
Browse files Browse the repository at this point in the history
  • Loading branch information
DAnn2012 authored Sep 18, 2024
1 parent 538b118 commit 2c12fb7
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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',
};

Expand Down

0 comments on commit 2c12fb7

Please sign in to comment.