Replies: 2 comments 2 replies
-
这个自己传一下 message就好了。 你说的asynca-validator支持设置语言包是指这里最后这种方式吗,它也不是切换locale的形式呀。也是你自己传进去的。跟message里直接传没有区别。
|
Beta Was this translation helpful? Give feedback.
2 replies
-
对于比如长度验证的提示语,这种都是很通用的提示语,完全可以语言包,
以上是我的个人见解 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
表单验证提示语如何设置多语言的语言包?
表单验证是基于
async-validator
的,默认在
rules
中未配置message
情况下是显示默认的英文提示语(这个是async-validator
内置的)Form
组件有没有什么方式给async-validator
设置语言包,或者在Semi Design的LocaleProvider
组件中进行注入语言包?(
async-validator
是支持设置语言包的:https://github.com/yiminghe/async-validator?tab=readme-ov-file#messages)Beta Was this translation helpful? Give feedback.
All reactions