summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/i18next.cr4
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
tle='2021-10-26 15:31:13 +0200'>2021-10-26Delete lock.ymlsyeopite 2021-10-26Add healthcheck for docker-compose황윤성 2021-10-25Switch to #sort_by! in pull_popular_videos jobsyeopite 2021-10-25Reduce block verbosity furthersyeopite 2021-10-25Optimize assigning of on_response_received_endpointssyeopite 2021-10-25Remove extra dot between [] from ambea copy-pasting.syeopite 2021-10-25Update src/invidious/routes/playlists.crsyeopite 2021-10-25Update src/invidious/routes/channels.crsyeopite 2021-10-25Fix Style/IsAFilter issuessyeopite 2021-10-25Fix Performance/ChainedCallWithNoBang issuessyeopite 2021-10-25Fix Style/VerboseBlock issuessyeopite 2021-10-25Fix Style/VariableNames issuessyeopite 2021-10-25Fix Lint/UnusedArgument issuessyeopite 2021-10-25Fix Lint/RedundantStringCoercion issuessyeopite 2021-10-25Feature Request: Localization for trending (remove region from server config)Dmitry Sandalov 2021-10-24Bump crystal version for ARM docker container to 1.2.0-r0 (#2527)Samantaz Fox 2021-10-21Feature Request: Localization for trending (fix lint CONTENT_REGIONS end comma)Dmitry Sandalov 2021-10-21Feature Request: Localization for trending (reword region doc)Dmitry Sandalov 2021-10-21Feature Request: Localization for trending (move TRENDING_REGIONS to i18n.cr ...Dmitry Sandalov 2021-10-21Feature Request: Localization for trending iv-org#331Dmitry Sandalov 2021-10-18Move 'extract_text()' to 'extractors_utils.cr'Samantaz Fox 2021-10-18Move 'extractors.cr' to 'yt_backend' folderSamantaz Fox 2021-10-18Move 'add_yt_headers()' to 'connection_pool.cr'Samantaz Fox 2021-10-18Move 'extract_videos' and 'extract_selected_tab' tooSamantaz Fox