You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					12 lines
				
				453 B
			
		
		
			
		
	
	
					12 lines
				
				453 B
			| 
											2 years ago
										 | export default (function (option, Dayjs, dayjs) { | ||
|  |   dayjs.updateLocale = function (locale, customConfig) { | ||
|  |     var localeList = dayjs.Ls; | ||
|  |     var localeConfig = localeList[locale]; | ||
|  |     if (!localeConfig) return; | ||
|  |     var customConfigKeys = customConfig ? Object.keys(customConfig) : []; | ||
|  |     customConfigKeys.forEach(function (c) { | ||
|  |       localeConfig[c] = customConfig[c]; | ||
|  |     }); | ||
|  |     return localeConfig; // eslint-disable-line consistent-return
 | ||
|  |   }; | ||
|  | }); |