-
Notifications
You must be signed in to change notification settings - Fork 154
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
problem with plurals string #275
Comments
Can you make a jsFiddle example? |
One boat
this not working |
What I meant is, please make an example that reproduces your bug here: https://jsfiddle.net/ I cannot help you sort this out without seeing what exactly you are doing. |
slove my problem my self |
@rubenv can you please reopen this issue? I have the same problem: |
@agrajaghh why are you assigning a string to something that is supposed to be a number? |
@rubenv we have some metadata stored in a db table as strings (strings, dates, ints) and pass them via a REST API to angular. I know thats probably not the best way... Would you accept a PR which uses |
oh, I saw there is already a PR for it: #315 |
@agrajaghh Make sure your data is correct at the source. Sending in a bad data type usually indicates a bug. Casting it on our side will only mask those. |
@rubenv I don't think silently always falling back to plural is the better alternative. It should then fail at all and produce no string or something like that if the argument is a string |
Sure, let's make it throw an error if the |
|
for god's sake, why not just convert it..... |
@rubenv @agrajaghh |
@ngehlert That is wrong in every way... Passing |
@rubenv the plural form is determined by the first function parameter, not by the parameter itself isn't it? example: edit: oh nvm I misread the comment and thought you were talking about the last parameter and not the first one. I had a completely different use case in mind sorry :D |
i am using translate-n for plurals string as shown below
original(problem ) output:Your Priority available only 1%. every time get message like that
The text was updated successfully, but these errors were encountered: