django-celery-beat has a problem translating period in Russian with proper cases (падежи) and non-plural every field as well as showing the 1 when schedule is every 1 hour/day, etc
E.g. interval of every 1 day is shown as
context["scrape_interval_task"] = f"каждые {periodic_task.interval.every} {periodic_task.interval.period}" # каждые 1 days
context["scrape_interval_task"] = periodic_task.interval # каждые день (not "каждый 1 день")
Need to create a util function that would take care of all the cases for Russian language.
django-celery-beat has a problem translating
period
in Russian with proper cases (падежи) and non-pluralevery
field as well as showing the1
when schedule is every 1 hour/day, etcE.g. interval of every 1 day is shown as
context["scrape_interval_task"] = f"каждые {periodic_task.interval.every} {periodic_task.interval.period}"
# каждые 1 dayscontext["scrape_interval_task"] = periodic_task.interval
# каждые день (not "каждый 1 день")Need to create a util function that would take care of all the cases for Russian language.