import React, { PureComponent } from 'react'; import { formatMessage, setLocale, getLocale } from 'umi/locale'; import { Menu, Icon } from 'antd'; import classNames from 'classnames'; import HeaderDropdown from '../HeaderDropdown'; import styles from './index.less'; export default class SelectLang extends PureComponent { changeLang = ({ key }) => { setLocale(key); }; render() { const { className } = this.props; const selectedLang = getLocale(); const langMenu = (
); return (