refactor: update CLDR data for closure locale & use a const for undefined (#23372)
PR Close #23372
This commit is contained in:
		
							parent
							
								
									12f90ef428
								
							
						
					
					
						commit
						d1177c75f8
					
				
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -116,7 +116,8 @@ function generateAllLocalesFile(LOCALES, ALIASES) { | ||||
|                 .replace(`${HEADER}\n`, '') | ||||
|                 .replace('export default ', `export const locale_${localeName} = `) | ||||
|                 .replace('function plural', `function plural_${localeName}`) | ||||
|                 .replace(/,(\n  | )plural/, `, plural_${localeName}`); | ||||
|                 .replace(/,(\n  | )plural/, `, plural_${localeName}`) | ||||
|                 .replace('const u = undefined;\n\n', ''); | ||||
|       } | ||||
|     } | ||||
| 
 | ||||
| @ -140,6 +141,8 @@ function generateAllLocalesFile(LOCALES, ALIASES) { | ||||
|   return `${HEADER} | ||||
| import {registerLocaleData} from '../src/i18n/locale_data'; | ||||
| 
 | ||||
| const u = undefined; | ||||
| 
 | ||||
| ${LOCALES.map(locale => `${existingLocalesData[locale]}`).join('\n')} | ||||
| 
 | ||||
| let l: any; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user