diff --git a/calendarweek/django.py b/calendarweek/django.py index 4a5bfe2cd97497331f265c474d6f10fe356d005e..fe962d5bd89a5adc9a186300eda291a02487c99e 100644 --- a/calendarweek/django.py +++ b/calendarweek/django.py @@ -14,7 +14,7 @@ def i18n_day_names(loc: Optional[str] = None) -> Tuple[str]: """ Return a tuple of day names for the current locale. """ if loc is None: - loc = to_locale(get_language()) + "." + DEFAULT_LOCALE_ENCODING + loc = to_locale(get_language()) try: return CalendarWeek.day_names(loc) @@ -26,7 +26,7 @@ def i18n_day_abbrs(loc: Optional[str] = None) -> Tuple[str]: """ Return a tuple of day name abbreviations for the current locale. """ if loc is None: - loc = to_locale(get_language()) + "." + DEFAULT_LOCALE_ENCODING + loc = to_locale(get_language()) try: return CalendarWeek.day_abbrs(loc) @@ -38,7 +38,7 @@ def i18n_month_names(loc: Optional[str] = None) -> Tuple[str]: """ Return a tuple of month names for the current locale. """ if loc is None: - loc = to_locale(get_language()) + "." + DEFAULT_LOCALE_ENCODING + loc = to_locale(get_language()) try: return CalendarWeek.month_names(loc) @@ -50,7 +50,7 @@ def i18n_month_abbrs(loc: Optional[str] = None) -> Tuple[str]: """ Return a tuple of month name abbreviations for the current locale. """ if loc is None: - loc = to_locale(get_language()) + "." + DEFAULT_LOCALE_ENCODING + loc = to_locale(get_language()) try: return CalendarWeek.month_abbrs(loc)