ant-design / ant-design/pro-components

🧐[问题]更新next.js版本从13.4.5到13.4.12后。ConfigProvider 设置local语言对pro components不生效

Open
#7,512 31 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

### 🧐 问题描述

我通过ConfigProvider 的local属性来设置语言为英语。今天更新next.js版本后发现包括ProTable,ProFormList在内的多个组件不生效。但是antd的组件都是生效的

### 💻 示例代码
```bash
export default function App({ Component, pageProps: { session, ...pageProps }, }: AppProps) {
const getPopupContainer = () => document.body;
return (



)
}
```
© 版本信息
ant-design/pro-components :2.6.11
antd : 5.8.3,
next : 13.4.8 或者更高的版本

### 🚑 其他信息
这是更新next.js版本前后的对比
![image](https://github.com/ant-design/pro-components/assets/120505414/b243368b-b5ca-45c4-8a31-26434bebd7d9)![image](https://github.com/ant-design/pro-components/assets/120505414/5c19ea2a-c248-4576-938a-e20eba27ed78)

Contributor guide

Open the contributing guide

Research direction

Start with the provided App entry point and reproduce the locale behavior using ConfigProvider with en_US on Next.js 13.4.8 or later. Compare the language handling of ProTable and ProFormList with the working Ant Design components; done means the Pro components display English while using the shown configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.