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

🐛[BUG] ProFormCaptcha组件 i18n缺陷 #8899

Open
XiaoYu0807 opened this issue Nov 29, 2024 · 2 comments
Open

🐛[BUG] ProFormCaptcha组件 i18n缺陷 #8899

XiaoYu0807 opened this issue Nov 29, 2024 · 2 comments

Comments

@XiaoYu0807
Copy link

XiaoYu0807 commented Nov 29, 2024

🐛 bug 描述

image
ProFormCaptcha 在修改i18n为en-US 获取验证码按钮没有i18n翻译

🏞 期望结果

预期需要获取验证码按钮翻译i18n

© 版本信息

  • ProComponents 版本: ^2.4.0
  • umi 版本 @umijs/max ^4.2.13
  • 浏览器环境 Chrome 131.0.6778.86 正式版本
  • 开发环境 Sonoma 14.5
@cycleccc
Copy link
Contributor

cycleccc commented Dec 2, 2024

https://github.com/cycleccc/pro-components/blob/21ce755745c1b5fa26415cd1dcc1a8ac8ed2c159/packages/form/src/components/Captcha/index.tsx#L49
通过使用 captchaTextRender 盖掉即可,内置的 i18n 也不太灵活,没必要改了。

@XiaoYu0807
Copy link
Author

https://github.com/cycleccc/pro-components/blob/21ce755745c1b5fa26415cd1dcc1a8ac8ed2c159/packages/form/src/components/Captcha/index.tsx#L4By9 使用 captchaTextRender 盖掉就可以了,里面的 i18n 也不太好用,没必要改了。

好的感谢

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

2 participants