Changes between Initial Version and Version 1 of Ticket #34515, comment 19
- Timestamp:
- May 17, 2025, 5:07:35 AM (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34515, comment 19
initial v1 15 15 As a workaround, we have implemented our own `LocaleMiddleware` which: 16 16 17 - uses logic adapted from `django-extensions`' `show_urls` command to list all routes in all activated languages17 - uses logic adapted from `django-extensions`' `show_urls` command to list all routes in all enabled languages 18 18 - groups them by name to see whether some routes have more than one distinct pattern 19 19 - this tells us whether a route is translated (of type B), or not translated (of type A) 20 20 - if type B, `LocaleMiddleware` should infer the language from the route. If type A, it shouldn't. 21 21 22 edit: I'll post this again on the other bug report, that's the one that's still present. 23