ConfigProvider国际化缺少语言的ts支持
loakliu opened this issue · comments
Version of antd-mobile
5.33
What is this feature about?
import enUS from 'antd-mobile/es/locales/en-US'; import zhCN from 'antd-mobile/es/locales/en-US'; interface AntdLngConfigProps { [key: string]: Locale; }
期待有一个Locale的类型支持,可以从antd-mobile/es中导出
类似
import type { Locale } from 'antd-mobile/es';
import { Locale } from 'antd-mobile/es/locales/base';
我关掉这个问题