mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	fix: vxe i18n
This commit is contained in:
		
							parent
							
								
									a7576f6971
								
							
						
					
					
						commit
						0bba4b7d64
					
				@ -66,6 +66,13 @@ VXETable.setup({
 | 
			
		||||
    return unref(i18n.global.locale) === "zh"
 | 
			
		||||
      ? XEUtils.toFormatString(XEUtils.get(zh, key), args)
 | 
			
		||||
      : XEUtils.toFormatString(XEUtils.get(en, key), args);
 | 
			
		||||
  },
 | 
			
		||||
  translate(key) {
 | 
			
		||||
    const NAMESPACED = ["el.", "buttons."];
 | 
			
		||||
    if (key && NAMESPACED.findIndex(v => key.includes(v)) !== -1) {
 | 
			
		||||
      return i18n.global.t.call(i18n.global.locale, key);
 | 
			
		||||
    }
 | 
			
		||||
    return key;
 | 
			
		||||
  }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user