How can I get the current language in the current thread in a model or in the admin?
Functions of particular interest are django.utils.translation.get_language() which returns the language used in the current thread. See documentation.
django.utils.translation.get_language()
1.4m articles
1.4m replys
5 comments
57.0k users