From 60eb61bd600eae89ad877f98af779951d3c0ffd6 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> Date: Sun, 21 May 2023 06:17:25 +0430 Subject: [PATCH] Add tgLang option --- web/assets/js/model/models.js | 1 + web/entity/entity.go | 1 + web/network/{autp_https_conn.go => auto_https_conn.go} | 0 web/service/setting.go | 1 + 4 files changed, 3 insertions(+) rename web/network/{autp_https_conn.go => auto_https_conn.go} (100%) diff --git a/web/assets/js/model/models.js b/web/assets/js/model/models.js index 21bd5567..b6fb49c9 100644 --- a/web/assets/js/model/models.js +++ b/web/assets/js/model/models.js @@ -179,6 +179,7 @@ class AllSetting { this.tgRunTime = "@daily"; this.tgBotBackup = false; this.tgCpu = ""; + this.tgLang = ""; this.xrayTemplateConfig = ""; this.subEnable = false; this.subListen = ""; diff --git a/web/entity/entity.go b/web/entity/entity.go index cfdd3b6b..c9a90911 100644 --- a/web/entity/entity.go +++ b/web/entity/entity.go @@ -41,6 +41,7 @@ type AllSetting struct { TgRunTime string `json:"tgRunTime" form:"tgRunTime"` TgBotBackup bool `json:"tgBotBackup" form:"tgBotBackup"` TgCpu int `json:"tgCpu" form:"tgCpu"` + TgLang string `json:"tgLang" form:"tgLang"` XrayTemplateConfig string `json:"xrayTemplateConfig" form:"xrayTemplateConfig"` TimeLocation string `json:"timeLocation" form:"timeLocation"` SubEnable bool `json:"subEnable" form:"subEnable"` diff --git a/web/network/autp_https_conn.go b/web/network/auto_https_conn.go similarity index 100% rename from web/network/autp_https_conn.go rename to web/network/auto_https_conn.go diff --git a/web/service/setting.go b/web/service/setting.go index 638d9107..05a54f9e 100644 --- a/web/service/setting.go +++ b/web/service/setting.go @@ -39,6 +39,7 @@ var defaultValueMap = map[string]string{ "tgRunTime": "@daily", "tgBotBackup": "false", "tgCpu": "0", + "tgLang": "en-US", "subEnable": "false", "subListen": "", "subPort": "2096",