mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 01:11:57 +00:00
perf: lang setting from core
This commit is contained in:
@@ -126,7 +126,8 @@ class UserLoginContextMixin:
|
||||
|
||||
def get_current_lang(self):
|
||||
langs = self.get_support_langs()
|
||||
matched_lang = filter(lambda x: x['code'] == get_language(), langs)
|
||||
lang = get_language()
|
||||
matched_lang = filter(lambda x: x['code'] == lang, langs)
|
||||
return next(matched_lang, langs[0])
|
||||
|
||||
@staticmethod
|
||||
|
Reference in New Issue
Block a user