Undo Naming/PredicateName change in i18next.cr

This commit is contained in:
syeopite 2024-07-27 12:41:03 -07:00
parent f6de341043
commit b75e5cfba6
No known key found for this signature in database
GPG key ID: A73C186DA3955A1A

View file

@ -189,7 +189,7 @@ module I18next::Plurals
# Emulate the `rule.numbers.size == 2 && rule.numbers[0] == 1` check
# from original i18next code
private def simple_plural?(form : PluralForms) : Bool
private def is_simple_plural(form : PluralForms) : Bool
case form
when .single_gt_one? then return true
when .single_not_one? then return true
@ -211,7 +211,7 @@ module I18next::Plurals
idx = SuffixIndex.get_index(plural_form, count)
# Simple plurals are handled differently in all versions (but v4)
if @simplify_plural_suffix && simple_plural?(plural_form)
if @simplify_plural_suffix && is_simple_plural(plural_form)
return (idx == 1) ? "_plural" : ""
end