Refactor plural rules definitions
Closed this issue · 1 comments
lcharette commented
In an effort to simplify code and testing, I divided the plural rules into static classes. To keep compatibility with previous releases, I kept the number based name for each rules.
When ready to move on to a new release cycle, we should rename each rule by their relative family.
In relation to #3 and userfrosting/UserFrosting#850, I think we could integrate those rules in the language definition. For example, if French defines the rule to use, then Portuguese can extend French and uses the same rule. This however requires each locale (language) to have a PHP file and not a YAML one...