diff --git a/django/middleware/locale.py b/django/middleware/locale.py index 83ecbdcc679..e3c95766c9c 100644 --- a/django/middleware/locale.py +++ b/django/middleware/locale.py @@ -19,6 +19,6 @@ class LocaleMiddleware: def process_response(self, request, response): patch_vary_headers(response, ('Accept-Language',)) + response['Content-Language'] = translation.get_language() translation.deactivate() return response -