-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ConfigProvider support locale #17816
Conversation
Deploy preview for ant-design ready! Built with commit 59265b0 |
Codecov Report
@@ Coverage Diff @@
## feature #17816 +/- ##
===========================================
+ Coverage 96.06% 96.06% +<.01%
===========================================
Files 271 271
Lines 7475 7479 +4
Branches 2091 2079 -12
===========================================
+ Hits 7181 7185 +4
Misses 292 292
Partials 2 2
Continue to review full report at Codecov.
|
@@ -3,6 +3,9 @@ import * as PropTypes from 'prop-types'; | |||
import * as moment from 'moment'; | |||
import interopDefault from '../_util/interopDefault'; | |||
import { ModalLocale, changeConfirmLocale } from '../modal/locale'; | |||
import warning from '../_util/warning'; | |||
|
|||
export const ANT_MARK = 'internalMark'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是可以用 Symbol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IE 不支持 Symbol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是有 babel runtime 转过
Done. Please check. @afc163 |
🤔 This is a ...
🔗 Related issue link
ref #16911
💡 Background and solution
Merge LocaleProvider into ConfigProvider
📝 Changelog
☑️ Self Check before Merge
View rendered components/config-provider/demo/all.md
View rendered components/config-provider/index.en-US.md
View rendered components/config-provider/index.zh-CN.md
View rendered components/date-picker/index.en-US.md
View rendered components/date-picker/index.zh-CN.md
View rendered components/locale-provider/index.en-US.md
View rendered components/locale-provider/index.zh-CN.md
View rendered docs/react/faq.zh-CN.md
View rendered docs/react/getting-started.zh-CN.md
View rendered docs/react/i18n.en-US.md
View rendered docs/react/i18n.zh-CN.md