mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: i18n
This commit is contained in:
		@@ -1,4 +1,13 @@
 | 
			
		||||
import EnumValue from './Enum';
 | 
			
		||||
// element plus 自带国际化
 | 
			
		||||
import zhcnLocale from 'element-plus/es/locale/lang/zh-cn';
 | 
			
		||||
import enLocale from 'element-plus/es/locale/lang/en';
 | 
			
		||||
 | 
			
		||||
// i18n
 | 
			
		||||
export const I18nEnum = {
 | 
			
		||||
    ZhCn: EnumValue.of('zh-cn', '简体中文').setExtra({ icon: 'iconfont icon-fuhao-zhongwen', el: zhcnLocale }),
 | 
			
		||||
    En: EnumValue.of('en', 'English').setExtra({ icon: 'iconfont icon-fuhao-yingwen', el: enLocale }),
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// 资源类型
 | 
			
		||||
export const ResourceTypeEnum = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user