diff options
| author | syeopite <syeopite@syeopite.dev> | 2024-07-25 20:08:26 -0700 |
|---|---|---|
| committer | syeopite <syeopite@syeopite.dev> | 2024-07-25 20:08:26 -0700 |
| commit | 6506b8dbfce93f9761999b8d91b182350b64b0ff (patch) | |
| tree | 5cc51a4a258d37e1e3cecb6b025336dbd3649040 /src | |
| parent | 205f988491886c81f0179f08c23691201e2ae172 (diff) | |
| download | invidious-6506b8dbfce93f9761999b8d91b182350b64b0ff.tar.gz invidious-6506b8dbfce93f9761999b8d91b182350b64b0ff.tar.bz2 invidious-6506b8dbfce93f9761999b8d91b182350b64b0ff.zip | |
Ameba: Fix Naming/PredicateName
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/helpers/i18next.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/helpers/i18next.cr b/src/invidious/helpers/i18next.cr index c82a1f08..684e6d14 100644 --- a/src/invidious/helpers/i18next.cr +++ b/src/invidious/helpers/i18next.cr @@ -188,7 +188,7 @@ module I18next::Plurals # Emulate the `rule.numbers.size == 2 && rule.numbers[0] == 1` check # from original i18next code - private def is_simple_plural(form : PluralForms) : Bool + private def simple_plural?(form : PluralForms) : Bool case form when .single_gt_one? then return true when .single_not_one? then return true @@ -210,7 +210,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 && is_simple_plural(plural_form) + if @simplify_plural_suffix && simple_plural?(plural_form) return (idx == 1) ? "_plural" : "" end |
