This would allow the following usage:
* Have i18n prefixed urls for a website
* Allow accept language header for api views which are not prefixed
I am willing to write a patch for this if there it would be merged to
django eventually.
--
Ticket URL: <https://code.djangoproject.com/ticket/30675>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: 2.2 => master
--
Ticket URL: <https://code.djangoproject.com/ticket/30675#comment:1>
* status: new => closed
* resolution: => needsinfo
Comment:
Hi Jenez,
Thanks for the report. I kind of see the use-case here but changes here
are non-trivial, so I think we need to flesh out the proposal, probably on
the DevelopersMailingList, before moving forwards. (This is a delicate
area and there's lots of expertise available there.)
Some thoughts...
* What's the exact use-case that's failing, and are the existing
workarounds that we can use? (Custom middleware... Setting active language
etc...)
* There's a long history for the Internationalization component, and open
tickets around `get_language_from_path()` and `..._request()` etc. Are
these related?
* What would the proposed change look like and what breaking changes would
be involved?
The need here is just to flesh out what's involved. I hope that makes
sense.
--
Ticket URL: <https://code.djangoproject.com/ticket/30675#comment:2>