angular-docs-cn/packages/localize/schematics/ng-add
Alan Agius aaf9b31fb4 feat(core): drop support for zone.js 0.10.x (#40823)
With this change we drop support for zone.js 0.10.x.
This is needed because in version 12 the CLI will only work with `~0.11.4`. See angular/angular-cli#20034.

BREAKING CHANGE:

Minimum supported `zone.js` version is `0.11.4`

PR Close #40823
2021-02-24 07:58:29 -08:00
..
BUILD.bazel build: upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#39182) 2020-10-08 11:54:59 -07:00
README.md fix(localize): install `@angular/localize` in `devDependencies` by default (#38680) 2020-09-03 09:41:38 -07:00
index.ts fix(localize): install `@angular/localize` in `devDependencies` by default (#38680) 2020-09-03 09:41:38 -07:00
index_spec.ts feat(core): drop support for zone.js 0.10.x (#40823) 2021-02-24 07:58:29 -08:00
schema.d.ts fix(localize): install `@angular/localize` in `devDependencies` by default (#38680) 2020-09-03 09:41:38 -07:00
schema.json fix(localize): install `@angular/localize` in `devDependencies` by default (#38680) 2020-09-03 09:41:38 -07:00
tsconfig-build.json feat(ivy): support ng-add in localize package (#32791) 2019-09-27 13:15:02 -07:00

README.md

@angular/localize schematic for ng add

This schematic will be executed when an Angular CLI user runs ng add @angular/localize.

It will search their angular.json file, and find polyfills and main files for server builders. 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.