diff --git a/ui/app/components/app/modals/notification-modal.js b/ui/app/components/app/modals/notification-modal.js index 9cec3ed82..800cd4f2f 100644 --- a/ui/app/components/app/modals/notification-modal.js +++ b/ui/app/components/app/modals/notification-modal.js @@ -4,6 +4,10 @@ import {connect} from 'react-redux' import { hideModal } from '../../../store/actions' class NotificationModal extends Component { + static contextProps = { + t: PropTypes.func.isRequired, + } + render () { const { header, @@ -14,6 +18,8 @@ class NotificationModal extends Component { onConfirm, } = this.props + const { t } = this.context + const showButtons = showCancelButton || showConfirmButton return ( @@ -35,7 +41,7 @@ class NotificationModal extends Component { className="btn-default notification-modal__buttons__btn" onClick={hideModal} > - Cancel + {t('cancel')} )} {showConfirmButton && ( @@ -46,7 +52,7 @@ class NotificationModal extends Component { hideModal() }} > - Confirm + {t('confirm')} )}