-
-
Notifications
You must be signed in to change notification settings - Fork 628
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
Missing key default pluralization issues #1549
Comments
This is probably, because your first count value is 0, and this is a plural |
Yeah, makes sense – if the state is initialized to With that said, is this expected behavior? |
seems so |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Working with this some more over the past week, this still seems like a minor bug to me. I'm happy to help out with a fix, but it might be a few weeks before I get around to it; feel free to point me in the right direction of the relevant code in the meantime. |
@namoscato that functionality can be found here https://github.com/i18next/i18next/blob/master/src/Translator.js#L245 would be happy to accept a PR |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
FYI, I took a pass at this in #1558. |
🐛 Bug Report
There seems to be some issues with default value pluralization when
missingKeys
is enabled:To Reproduce
Here's a CodeSandbox that illustrates the issue when evaluating:
This is not an issue when
saveMissing=false
.Expected behavior
Per the
defaultValue
description:I would expect the
myMissingKey
string to be pluralized correctly ascount
changes, and the missing key handler configured via a backend, should receive:Your Environment
The text was updated successfully, but these errors were encountered: