-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…668) * Add .vscode/ and .idea/ folders to gitignore * Fix #648: allow using "old" (e.g. pre-3.0.4) plural rules evaluation Add forcePluralCaseFallback option to force evaluation of fallback plural rules, i.e. * forcePluralCaseFallback: false Default behavior, will use "zero" rule for 0 only if the language is set to do so (e.g. for "lt" but not for "en"). * forcePluralCaseFallback: true Force using "zero" rule for 0 even if the language doesn't use it by default (e.g. "en"). If "zero" localization for that string doesn't exist, "other" is still used as fallback. * Rename forcePluralCaseFallback to ignorePluralRules and reverse logic Parameter forcePluralCaseFallback has been renamed to ignorePluralRules for clarity as suggested by bw-flagship. Also, the logic is now reversed (e.g. false will implement the old behavior and true will implement the new behavior). Finally, the default value is now false (old behavior). * Fix unit tests * Re-reverse logic of ignorePluralRules ignorePluralRules=true, "old" beahvior (default) ignorePluralRules=false, "new" beahvior * Revert some formatting changes --------- Co-authored-by: Maurizio Pinotti <[email protected]>
- Loading branch information
1 parent
4518a9c
commit 977a72f
Showing
7 changed files
with
127 additions
and
62 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
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
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
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