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

Correctly pluralize floats between 1 and 2 #96

Merged
merged 1 commit into from
Dec 8, 2015

Conversation

HeroicEric
Copy link
Member

This fixes #94

It also adds some test additional test cases to document the current
behavior.

One additional strange bit is that the float 1.0 is returned as 1 when
concatenated into the string. I'm not sure if this is the ideal response
but I did not see any clear way to handle keeping that as 1.0 in the
returned string. This is the current behavior so changing it might
cause some unintended side-effects.

/shrug javascripts

@fivetanley
Copy link
Member

LGTM. Can you investigate the failure with the ember beta test suite?

@fivetanley
Copy link
Member

Can you rebase? I merged #97. Just want to make sure we have all our ducks in a row.

This fixes emberjs#94

It also adds some test additional test cases to document the current
behavior.

One additional strange bit is that the float 1.0 is returned as 1 when
concatenated into the string. I'm not sure if this is the ideal response
but I did not see any clear way to handle keeping that as 1.0 in the
returned string. This is the current behavior so changing it might
cause some unintended side-effects.
@HeroicEric
Copy link
Member Author

rebased and passing again :)

fivetanley added a commit that referenced this pull request Dec 8, 2015
Correctly pluralize floats between 1 and 2
@fivetanley fivetanley merged commit 9a742cf into emberjs:master Dec 8, 2015
@fivetanley
Copy link
Member

This is released in 1.9.4

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.

Pluralize helper does not work with float values between 1 and 2
2 participants