import React from 'react' import PropTypes from 'prop-types' import FaAngleLeft from 'react-icons/lib/fa/angle-left' import { getLanguageName } from 'lib/utils/i18n' import Isvg from 'react-inlinesvg' import checkIcon from 'icons/check.svg' import { FormattedMessage } from 'react-intl' import messages from './messages' import styles from './Locale.scss' const Translate = ({ locales, disableSubMenu, currentLocale, setLocale }) => { const changeLocale = lng => { setLocale(lng) } return (
) } Translate.propTypes = { locales: PropTypes.object.isRequired, currentLocale: PropTypes.string.isRequired, setLocale: PropTypes.func.isRequired, disableSubMenu: PropTypes.func.isRequired } export default Translate