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

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

@sarina

Description

@sarina

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions