Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigProvider国际化缺少语言的ts支持 #6441

Closed
loakliu opened this issue Nov 21, 2023 · 1 comment
Closed

ConfigProvider国际化缺少语言的ts支持 #6441

loakliu opened this issue Nov 21, 2023 · 1 comment
Labels

Comments

@loakliu
Copy link

loakliu commented Nov 21, 2023

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';

@loakliu
Copy link
Author

loakliu commented Nov 21, 2023

import { Locale } from 'antd-mobile/es/locales/base';
我关掉这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant