react-component / react-component/picker

全局配置国际化,为什么日期组件的内容国际化不生效,

Open
#636 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
304
Forks
345
Avg merge
2d 7h
Merged PRs (30d)
7

Description

// 全局国际化的配置
import { ConfigProvider, } from 'antd'
import 'moment/locale/zh-cn.js' ====》yarn add moment
import zhCN from 'antd/locale/zh_CN.js'

const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(






Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the date component with ConfigProvider locale={zhCN} and the imported moment/locale/zh-cn.js setup. Trace how the picker handles the date-library locale separately from the antd locale configuration. Done means the date component’s displayed content is localized as expected, with the cause and verification recorded.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.