import React, { PureComponent } from 'react'; import { formatMessage, 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 { changeLang = ({ key }) => { setLocale(key); }; render() { const { className } = this.props; const selectedLang = getLocale(); const langMenu = ( 🇨🇳 {' '} 简体中文 🇭🇰 {' '} 繁体中文 🇬🇧 {' '} English 🇵🇹 {' '} Português ); return ( ); } }