Localization always set to language 'en'
Till Django-2.2.9 in my app localization work fine but after update to 3.0.1 translation not work and no error.
In django 2.2.9 when i am set
request.session['_language'] = language_code
then i found django.utils.translation.get_language() is language_code
but in django 3.0.1
i found django.utils.translation.get_language() always en even i set request.session['_language'] = 'ja'
Change History
(5)
| Description: |
modified (diff)
|
| Description: |
modified (diff)
|
| Description: |
modified (diff)
|
| Description: |
modified (diff)
|
| Resolution: |
→ invalid
|
| Status: |
new → closed
|
That's expected and documented in release notes.
https://docs.djangoproject.com/en/3.0/releases/3.0/#miscellaneous
https://code.djangoproject.com/ticket/15902
https://github.com/django/django/commit/a8e2a9bac6e548d6