mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-31 04:12:51 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "c8c0e77714e294e02fe847c7851092484387b615" and "cad07be8470f1bc6e85c60929dd02134f63f8a39" have entirely different histories.
		
	
	
		
			c8c0e77714
			...
			cad07be847
		
	
		
					 2 changed files with 1 additions and 20 deletions
				
			
		|  | @ -795,25 +795,6 @@ class LanguageManager { | ||||||
|             if (window.navigator) { |             if (window.navigator) { | ||||||
|                 lang = window.navigator.language || window.navigator.userLanguage; |                 lang = window.navigator.language || window.navigator.userLanguage; | ||||||
| 
 | 
 | ||||||
|                 const simularLangs = [ |  | ||||||
|                     ["ar", this.supportedLanguages[0].value], |  | ||||||
|                     ["fa", this.supportedLanguages[2].value], |  | ||||||
|                     ["ja", this.supportedLanguages[5].value], |  | ||||||
|                     ["ru", this.supportedLanguages[6].value], |  | ||||||
|                     ["vi", this.supportedLanguages[7].value], |  | ||||||
|                     ["es", this.supportedLanguages[8].value], |  | ||||||
|                     ["id", this.supportedLanguages[9].value], |  | ||||||
|                     ["uk", this.supportedLanguages[10].value], |  | ||||||
|                     ["tr", this.supportedLanguages[11].value], |  | ||||||
|                     ["pt", this.supportedLanguages[12].value], |  | ||||||
|                 ] |  | ||||||
| 
 |  | ||||||
|                 simularLangs.forEach((pair) => { |  | ||||||
|                     if (lang === pair[0]) { |  | ||||||
|                         lang = pair[1]; |  | ||||||
|                     } |  | ||||||
|                 }); |  | ||||||
| 
 |  | ||||||
|                 if (LanguageManager.isSupportLanguage(lang)) { |                 if (LanguageManager.isSupportLanguage(lang)) { | ||||||
|                     CookieManager.setCookie("lang", lang, 150); |                     CookieManager.setCookie("lang", lang, 150); | ||||||
|                 } else { |                 } else { | ||||||
|  |  | ||||||
|  | @ -548,7 +548,7 @@ | ||||||
|           if (!this.allSetting) return []; |           if (!this.allSetting) return []; | ||||||
|           var alerts = [] |           var alerts = [] | ||||||
|           if (window.location.protocol !== "https:") alerts.push('{{ i18n "secAlertSSL" }}'); |           if (window.location.protocol !== "https:") alerts.push('{{ i18n "secAlertSSL" }}'); | ||||||
|           if (this.allSetting.webPort === 2053) alerts.push('{{ i18n "secAlertPanelPort" }}'); |           if (this.allSetting.webPort == 54321) alerts.push('{{ i18n "secAlertPanelPort" }}'); | ||||||
|           panelPath = window.location.pathname.split('/').length < 4 |           panelPath = window.location.pathname.split('/').length < 4 | ||||||
|           if (panelPath && this.allSetting.webBasePath == '/') alerts.push('{{ i18n "secAlertPanelURI" }}'); |           if (panelPath && this.allSetting.webBasePath == '/') alerts.push('{{ i18n "secAlertPanelURI" }}'); | ||||||
|           if (this.allSetting.subEnable) { |           if (this.allSetting.subEnable) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue