Given a view defined by a function about_us, I would like it to be accessible by either one of these URLs:
/about//acerca-de/
In a way that requesting any of those activates the corresponding language and renders the view, but both URLs remain accessible at all times regardless of the currently active language.
I would also like to reverse these URLs inside templates using the path name, so reverse('about_us') can give me the URL that corresponds to the currently active language.
Django offers a mechanism for translating URLs by wrapping the string matchers for path objects in gettext_lazy so reverse URL resolution can return the one appropriate for the current language, but AFAIK only one of the URLs works at any given time, depending on the current language.
If I instead define two path objects then I can point them to the same view wrapped by some view decorator that activates the given language first, but then I lose the ability to perform reverse URL resolution and I am forced to perform some ugly tricks to get links to respect the current language.
Has anyone found a solution to this problem?