Skip to content

Commit

Permalink
widgets: Let Button confirm and cancel texts be t functions
Browse files Browse the repository at this point in the history
Use the parseTranslation function to parse the confirm and cancel texts.
  • Loading branch information
tahini committed Apr 10, 2024
1 parent b98f1f7 commit 9cea075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/evolution-legacy/src/components/survey/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export class Button extends React.Component {
cancelAction = {widgetConfig.confirmPopup.cancelAction}
showCancelButton = {widgetConfig.confirmPopup.showCancelButton !== false}
showConfirmButton = {widgetConfig.confirmPopup.showConfirmButton !== false}
cancelButtonLabel = {widgetConfig.confirmPopup.cancelButtonLabel}
confirmButtonLabel = {widgetConfig.confirmPopup.confirmButtonLabel}
cancelButtonLabel = {widgetConfig.confirmPopup.cancelButtonLabel ? surveyHelper.translateString(widgetConfig.confirmPopup.cancelButtonLabel, this.props.i18n, this.props.interview, this.props.path) : undefined}
confirmButtonLabel = {widgetConfig.confirmPopup.confirmButtonLabel ? surveyHelper.translateString(widgetConfig.confirmPopup.confirmButtonLabel, this.props.i18n, this.props.interview, this.props.path) : undefined}
cancelButtonColor = {widgetConfig.confirmPopup.cancelButtonColor}
confirmButtonColor = {widgetConfig.confirmPopup.confirmButtonColor}
containsHtml = {widgetConfig.containsHtml}
Expand Down

0 comments on commit 9cea075

Please sign in to comment.