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

formatMessage, FormattedMessage 的类型加载,加载不到界面模块下面的定义国际化文件 #4488

Closed
xiaopanghhh opened this issue Jun 13, 2019 · 6 comments

Comments

@xiaopanghhh
Copy link
Contributor

image

@keke122765
Copy link

同问

@chenshuai2144
Copy link
Collaborator

#4515

@chenshuai2144
Copy link
Collaborator

@ycjcl868 可能需要更好的方案了

@ycjcl868
Copy link
Contributor

目前是临时方案,终极方案在 umi dev 的时候,将 umi 内部 merge 的 locales 生成 d.ts

@chenshuai2144
Copy link
Collaborator

有没有临时解决方案,怎么设置一下可以变成 any 之类的

@amoibean
Copy link

解决方案见 umijs/umi#2652 (comment)

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

No branches or pull requests

5 participants