use i18n.translate functions for translations instead of this.props.intl.formatMessage function which is not injected (#29407) (#29411)

This commit is contained in:
pavel06081991 2019-01-28 19:37:51 +03:00 committed by GitHub
parent 5b5b8e5e9a
commit 68bfccf6b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,8 +181,7 @@ class RequestSelector extends Component {
{ selectedRequest.status === RequestStatus.PENDING &&
<EuiLoadingSpinner
size="m"
aria-label={this.props.intl.formatMessage({
id: 'inspectorViews.requests.requestInProgressAriaLabel',
aria-label={i18n.translate('inspectorViews.requests.requestInProgressAriaLabel', {
defaultMessage: 'Request in progress'
})}
/>