Features of the resolve function behavior when setting the language in Django 5

Today I came across an interesting bug on EVILEG, which involves the behavior of the resolve function for resolving paths on a Django site when setting the language. Introduction Django has a feature for setting the user's language on the site. For example, if the site supports multiple languages, the user can choose English. In the standard Django package, there is a view for setting the language…