W3cubDocs

/Angular

Add the localize package

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 package.json and polyfills.ts files in your project.

ng add @angular/localize

For more information about package.json and polyfill.ts files, see Workspace npm dependencies.

If @angular/localize is not installed and you try to build a localized version of your project, the Angular CLI generates an error.

What's next

Last reviewed on Thu Oct 07 2021

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/guide/i18n-common-add-package