iamkun / iamkun/dayjs

locale is not a consistent

Open
#900 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/iamkun/dayjs/blob/8035c8a760549b631252252718db3cdc4ab2f68f/src/locale/ru.js#L42
locale is not uniform format for different languages.
due to the fact that in ru locale months and monthsShort not simple arrays of strings
https://ant.design/components/date-picker/ does not fully supported ru locale , see
https://github.com/react-component/picker/blob/e7403734d8cde9c9403ae00c83c4da34625ede57/src/generate/dayjs.ts#L90

I propose to add monthStandalone and monthShortStandalone props to locale
and make a choice in a separate function

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.