ant-design / ant-design/pro-components
BetaSchemaForm多语言泰语适配异常,显示中文
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🐛 bug 描述
使用BetaSchemaForm组件QueryFilter模式下,‘查询’、‘重置’、‘收起’、‘展开’,在泰语下显示中文
### 📷 复现步骤
直接切换到泰语情况下,使用BetaSchemaForm去查看上面描述的哪几种文字显示中文,猜测是当时忘记适配了
### 🏞 期望结果
希望尽快的解决此问题,尽快适配泰语
### 💻 复现代码
submitter={{
render: (props: any, doms) => {
if (typeof submitterRender === 'function') {
return submitterRender(props);
} else if (layoutType === 'LightFilter' || layoutType === 'QueryFilter') {
// 此处泰语情况下显示中文
return [...doms]
}
afterSubmitter && btnDoms.push(afterSubmitter(props));
return (
{btnDoms}
);
}
},
}}
### © 版本信息
- ProComponents 版本: "@ant-design/pro-form": "1.73.0",
- 浏览器环境 118.0.5993.96
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start at BetaSchemaForm's QueryFilter submitter rendering and trace the locale lookup for 查询、重置、收起、展开 under Thai. Confirm the fix when those controls render Thai rather than Chinese in the reported @ant-design/pro-form 1.73.0 scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100