To take advantage of the localization features of Angular, use the Angular CLI to add the
@angular/localize package to your project.
To add the
@angular/localize package, use the following command to update the
polyfills.ts files in your project.
ng add @angular/localize
For more information about
polyfill.tsfiles, see Workspace npm dependencies.
@angular/localize is not installed and you try to build a localized version of your project, the Angular CLI generates an error.
© 2010–2022 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.