mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-30 20:02:51 +00:00 
			
		
		
		
	Compare commits
	
		
			2 commits
		
	
	
		
			cad07be847
			...
			c8c0e77714
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | c8c0e77714 | ||
|   | 49b8f46864 | 
					 2 changed files with 20 additions and 1 deletions
				
			
		|  | @ -795,6 +795,25 @@ 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 == 54321) alerts.push('{{ i18n "secAlertPanelPort" }}'); |           if (this.allSetting.webPort === 2053) 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