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

English 0 plural change #271

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

English 0 plural change #271

wants to merge 2 commits into from

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

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.

None yet

2 participants