mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-08 00:22:05 +01:00
6 lines
213 B
Python
6 lines
213 B
Python
from django.utils.translation import LANGUAGE_SESSION_KEY
|
|
|
|
class SetLanguage(object):
|
|
def setUserLanguage(self,request,exception):
|
|
request.session[LANGUAGE_SESSION_KEY] = "pt-pt"
|
|
return "Hello" |