iamkun / iamkun/dayjs

Please fix declension in relative time

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

Description

**Describe the bug**
Thanks for fixing https://github.com/iamkun/dayjs/issues/577. But I found another bug. This time with relativeTime plugin.

**Expected behavior**
It is incorrectly using declension. For example: "2 dayjs ago" needs to be "2 дня назад" but instead shows "2 дней назад". How it needs to be described here http://www.unicode.org/cldr/charts/28/supplemental/language_plural_rules.html#ru
I hope you will fix this and then I'll be able to throw away heavyweight momentjs. Because now I need to use moment for this cases.

**Information**
- Day.js: 1.8.14
- OS: Ubuntu 18.04.2 LTS
- Browser: Google Chrome 74.0.3729.169 (Official Build) (64-bit)
- Time zone: GMT+03:00

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.