mirror of https://github.com/jumpserver/jumpserver
[Update] 修改js默认语言为中文
parent
670e2d7352
commit
63746accf9
|
@ -1396,8 +1396,8 @@ function showCeleryTaskLog(taskId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUserLang(){
|
function getUserLang(){
|
||||||
let userLangZh = document.cookie.indexOf('django_language=zh');
|
let userLangZh = document.cookie.indexOf('django_language=en');
|
||||||
if (userLangZh !== -1){
|
if (userLangZh === -1){
|
||||||
return 'zh-CN'
|
return 'zh-CN'
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Reference in New Issue