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

🧐[问题] locale 默认应该是英文吧,看了下 antd 源码也是默认英文 locale 的 #8959

Open
yunsii opened this issue Jan 8, 2025 · 0 comments

Comments

@yunsii
Copy link
Contributor

yunsii commented Jan 8, 2025

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🧐 问题描述

默认英文的话保持跟 antd 一致的逻辑同时也避免了代码中耦合中文字符

💻 示例代码

const placeholderValue = fieldProps?.placeholder ||
placeholder || [
intl.getMessage('tableForm.inputPlaceholder', '请输入'),
intl.getMessage('tableForm.inputPlaceholder', '请输入'),
];

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

1 participant