mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	添加多语言最基础代码
This commit is contained in:
		@@ -185,6 +185,16 @@ Tea.context(function () {
 | 
			
		||||
			width: "54em"
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	this.LANG = function (code) {
 | 
			
		||||
		if (window.LANG_MESSAGES != null) {
 | 
			
		||||
			let message = window.LANG_MESSAGES[code]
 | 
			
		||||
			if (typeof message == "string") {
 | 
			
		||||
				return message
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		return "{{ LANG('" + code + "') }}"
 | 
			
		||||
	}
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
window.NotifySuccess = function (message, url, params) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user