Skip to content

Commit d07a06c

Browse files
committed
Keep only 'uk', not 'ua', as discussed with @Secrus
1 parent 56769c8 commit d07a06c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/pendulum/locales/locale.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ def normalize_locale(cls, locale: str) -> str:
5353
if m:
5454
return f"{m.group(1).lower()}_{m.group(2).lower()}"
5555
else:
56-
lower = locale.lower()
57-
if lower == 'ua':
58-
# Backward compatibility. Ukrainian was 'ua' initially.
59-
lower = 'uk'
60-
return lower
56+
return locale.lower()
6157

6258
def get(self, key: str, default: Any | None = None) -> Any:
6359
if key in self._key_cache:

0 commit comments

Comments
 (0)