diff --git a/calendarweek/django.py b/calendarweek/django.py index 69b683113604bf65acad267642868f657f479f95..0692ff32ef70f3c160c8ecb2c0b7c3ef0b94af16 100644 --- a/calendarweek/django.py +++ b/calendarweek/django.py @@ -82,13 +82,15 @@ def i18n_json_data(request: HttpRequest) -> JsonResponse: """ Deliver a JSON file containing JS representations of the current locale's calendar translations. """ - return JsonResponse({ - "day_names": i18n_day_names(), - "day_abbrs": i18n_day_abbrs(), - "month_names": i18n_month_names(), - "month_abbrs": i18n_month_abbrs(), - }) - + return JsonResponse( + { + "day_names": i18n_day_names(), + "day_abbrs": i18n_day_abbrs(), + "month_names": i18n_month_names(), + "month_abbrs": i18n_month_abbrs(), + } + ) + i18n_day_names_lazy = lazy(i18n_day_names, tuple) i18n_day_abbrs_lazy = lazy(i18n_day_abbrs, tuple)