import PropTypes from 'prop-types' import React, { Component } from 'react' import { localizeString } from 'react-chart-editor/lib' class EditorControls extends Component { constructor(props, context) { super(props, context) this.localize = key => localizeString(this.props.dictionaries || {}, this.props.locale, key) } getChildContext() { return { dictionaries: this.props.dictionaries || {}, localize: this.localize, locale: this.props.locale } } render() { return (