From 93bc133e2af911b7a9180ecc0bf7fa5e10240dcb Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Sun, 27 Sep 2020 15:14:50 +0200
Subject: [PATCH] Don't add encondings in i18n functions

---
 calendarweek/django.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/calendarweek/django.py b/calendarweek/django.py
index 4a5bfe2..fe962d5 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)
-- 
GitLab