ant-design / ant-design/pro-components
🧐[问题] pro-component的PageHeader 将所有的语言字符 build进了 打包文件中, 如何过滤, 只保留英文?
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### Reproduction link
[](https://stackblitz.com/edit/antd-reproduce-5x-396mt8?file=package.json)
### Steps to reproduce
npm run build
### What is expected?
不希望所有的语言(中文), 被打包进dist文件中
### What is actually happening?
所有的语言, 被打包进dist文件中
| Environment | Info |
| --- | --- |
| antd | 5.20.6 |
| React | 17 |
| System | mac monterey 12.6 |
| Browser | chrome |
Contributor guide
Research direction
Use the linked StackBlitz reproduction and run npm run build first. Trace how the pro-component PageHeader language data enters the dist output, then verify that the build retains only English while preserving the component behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100