angular/packages/localize/schematics/ng-add
Charles Lyding 1c3b1cf18d fix(localize): add support for unit-test builder in ng-add schematic
This commit updates the @angular/localize ng-add schematic to support
the @angular/build:unit-test builder. It ensures that @angular/localize
is added to the types array in the TypeScript configuration file
associated with the unit-test target. If no tsConfig is specified in
the target options, it defaults to tsconfig.spec.json in the project root.
2026-01-29 12:17:15 -08:00
..
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
index.ts fix(localize): add support for unit-test builder in ng-add schematic 2026-01-29 12:17:15 -08:00
index_spec.ts fix(localize): add support for unit-test builder in ng-add schematic 2026-01-29 12:17:15 -08:00
README.md docs(docs-infra): improve docs for @angular/localize package. (#49393) 2023-03-20 13:12:19 +01:00
schema.d.ts refactor(localize): remove deprecated name option. (#58063) 2024-10-03 16:43:36 +00:00
schema.json refactor(localize): remove deprecated name option. (#58063) 2024-10-03 16:43:36 +00:00

@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 add types: ["@angular/localize"] in the TypeScript configuration files of the project.

If the user specifies that they want to use $localize at runtime then the dependency will be added to the dependencies section of package.json rather than in the devDependencies which is the default.