-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PLURAL operator when less params are specified
The behaviour was previously incorrect for cases where the language has no plural rule defined (such as English, Chinese, etc) and the number isn't 1. such as `new Banana('en').i18n('{{PLURAL:$1|foo}}', 3)` which was giving `undefined` instead of `foo`. This bug isn't affecting `banana-i18n` because it uses Intl so this code path isn't there.
- Loading branch information
1 parent
2a13edf
commit 8d73d29
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters