Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Discovery: Use Django LocaleMiddleware instead of django-lang-pref-middleware #264

Closed
sarina opened this issue Sep 13, 2024 · 4 comments
Closed

Comments

@sarina
Copy link
Contributor

sarina commented Sep 13, 2024

My recollection is this custom middleware was written prior to Django having its own locale middleware, or at least, the Django native middleware didn't do what we want.

The last time this code was meaningfully updated was in 2014, when it was extracted from edx-platform. We should take a step back and investigate if there are Django native patterns around localization we should follow, to bring our project up to Django standards and avoid maintenance burden of custom middleware.

Can we replace this middleware with Django's LocaleMiddleware? Docs are here.

@sarina
Copy link
Contributor Author

sarina commented Sep 13, 2024

@feanil I don't see an Aximprovements team project to add this to

@feanil
Copy link
Contributor

feanil commented Sep 16, 2024

I've added it.

@irtazaakram
Copy link

Hey @sarina, I couldn’t find where this package is used in the Open edX repositories. The only usage I found was in this edX repository: edx-analytics-dashboard.

@sarina
Copy link
Contributor Author

sarina commented Oct 30, 2024 via email

@feanil feanil closed this as completed Nov 14, 2024
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in Aximprovements Team Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants