ConfigProvider 全局化配置 https://ant.design/components/config-provider-cn/
function I18nLayout(props) {
const [locale, setLocale] = useState({locale: 'en'});
return (
<ConfigProvider locale={locale}>
<IntlProvider locale={locale} messages={locale.messages}>
{props.children}
</IntlProvider>
</ConfigProvider>
)
}