Skip to content

Conversation

@AyubM
Copy link

@AyubM AyubM commented Jun 26, 2017

If it's 0, it should be plural in English

If it's 0, it should be plural in English
@AyubM AyubM mentioned this pull request Jun 26, 2017
if(Math.abs(count) > 1) {
return plural;
} else {
if(Math.abs(count) === 1) {
Copy link

@jayelkaake jayelkaake Sep 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this should be simply if(count === 1) {:

  • 2 secondS
  • 1 second
  • 0 secondS
  • -1 secondS

It's literally singular only when the count is 1.

English is odd 😋

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

Successfully merging this pull request may close these issues.

2 participants