Treat `en` as `en-US` for date formatting

Fixes #337
This commit is contained in:
Christopher C. Wells 2021-12-13 16:28:53 -05:00
parent 2ad48940c1
commit c06ce0325b
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class UserLanguageMiddleware:
language = settings.LANGUAGE_CODE
if language:
if language == 'en-US':
if language == 'en' or language == 'en-US':
update_en_us_date_formats()
elif language == 'en-GB':
update_en_gb_date_formats()