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
andpolyfill.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.
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/guide/i18n-common-add-package