Skip to content
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

Wrong plural "seconds" #5856

Open
jer-sen opened this issue Mar 19, 2021 · 0 comments
Open

Wrong plural "seconds" #5856

jer-sen opened this issue Mar 19, 2021 · 0 comments

Comments

@jer-sen
Copy link

jer-sen commented Mar 19, 2021

Describe the bug
1s is humanized as "1 seconds" instead of "1 second" or "a second"

To Reproduce
moment.duration(1, 's').humanize(false, { ss: 0 }) returns 1 seconds

Expected behavior
1 second or a second (moment.duration(1, 'm').humanize(false) returns a minute)

Please run the following code in your environment and include the output:

Fri Mar 19 2021 16:37:16 GMT+0100 (heure normale d’Europe centrale) debugger eval code:1:9
19/03/2021 à 16:37:16 debugger eval code:2:9
-60 debugger eval code:3:9
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 debugger eval code:4:9
2.29.1

Additional context
Same issue with moment.local('fr') : "1 secondes" instead of "1 seconde" or "une seconde".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant