ant-design / ant-design/pro-components

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

Open
#8,959 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

提问前先看看:

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

### 🧐 问题描述

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

### 💻 示例代码

https://github.com/ant-design/pro-components/blob/f2b6929fc494676e71a6b1eeedc786e317bd1735/packages/field/src/components/DigitRange/index.tsx#L92-L97

Contributor guide

Open the contributing guide

Research direction

Start with packages/field/src/components/DigitRange/index.tsx at the referenced lines and compare its locale handling with the linked Ant Design example. Confirm the intended default is English and identify the existing behavior to update; done means the component follows that default without coupling the code to Chinese characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.