From 8448f800e2d5971f219104123697e61010d7e74e Mon Sep 17 00:00:00 2001 From: Brian Glass Date: Thu, 30 Jul 2026 16:25:41 -0400 Subject: [PATCH] Enable log_language middleware to gauge real Accept-Language usage orthocal.middleware.log_language already existed (logs the resolved Accept-Language header at DEBUG level) but was never registered in MIDDLEWARE, so it never actually ran. Wiring it in so we can get a real, forward-looking answer on whether the Romanian/Serbian translations see any traffic, before deciding whether to keep them -- Cloud Run's default request logs don't capture request headers at all, and there's no existing signal to mine retroactively. Co-Authored-By: Claude Sonnet 5 --- orthocal/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/orthocal/settings.py b/orthocal/settings.py index 1e9648f..0e63140 100644 --- a/orthocal/settings.py +++ b/orthocal/settings.py @@ -91,6 +91,7 @@ 'django.middleware.gzip.GZipMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', + 'orthocal.middleware.log_language', 'django.middleware.common.CommonMiddleware', 'orthocal.middleware.cache_control', ]