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