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

Modal组件使用命令式调用时多语言设置不起作用 #387

Closed
Mueat opened this issue Dec 10, 2021 · 2 comments
Closed

Modal组件使用命令式调用时多语言设置不起作用 #387

Mueat opened this issue Dec 10, 2021 · 2 comments
Labels
invalid This doesn't seem right

Comments

@Mueat
Copy link

Mueat commented Dec 10, 2021

Which Component 出现bug的组件

  • Modal
  • 使用命令行方式调用时,取消和确认按钮一直显示的是中文

semi-ui version

  • latest

Expected result 期望的结果是什么

  • 能够根据LocaleProvider设置的语言正确显示默认的取消和确定按钮对应的文字
@Mueat Mueat added the bug Something isn't working label Dec 10, 2021
@pointhalo
Copy link
Collaborator

Modal FAQ有写。
Locale是依赖Contenxt机制工作的,命令式调用是无法影响React Tree的。无法消费到对应的Context。

@pointhalo
Copy link
Collaborator

image
image

@pointhalo pointhalo added invalid This doesn't seem right and removed bug Something isn't working labels Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants