-
Notifications
You must be signed in to change notification settings - Fork 105
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
fix: pluralization not being used for duration translations #183
Conversation
You mean it's literally outputting |
Yes |
What does |
|
Found the problem, I'm not passing KnpTimeBundle/src/DateTimeFormatter.php Line 76 in 3fe7960
|
$this->assertStringContainsString("Less than a second: < 1 second\n", $result); | ||
$this->assertStringContainsString("One second: 1 second\n", $result); | ||
$this->assertStringContainsString("Multiple seconds: 59 seconds\n", $result); | ||
$this->assertStringContainsString("One minute: 1 minute\n", $result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about 61 seconds? Does that still say 1 minute? Same for 1 hour and 1 minute (e.g. 3660 seconds)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that still say 1 minute?
Yes, I added some tests for this.
4198fc0
to
924d84b
Compare
Thanks Kevin! |
Pluralization is not being triggered for the new duration translations:
I can't immediately see the issue...