2019-09-20 16:05:45 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# @angular/localize schematic for `ng add`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-05-05 12:47:12 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								This schematic will be executed when an Angular CLI user runs `ng add @angular/localize`.
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-20 16:05:45 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								It will search their `angular.json` file, and find polyfills and main files for server builders.
							 | 
						
					
						
							
								
									
										
										
										
											2020-09-02 16:16:10 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Then it will add the `@angular/localize/init` polyfill that `@angular/localize` needs to work.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								If the user specifies that they want to use `$localize` at runtime then the dependency will be
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								added to the `depdendencies` section of `package.json` rather than in the `devDependencies` which
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								is the default.
							 |