angular/goldens/public-api/localize
Alan Agius c9541f4c49 fix(localize): update ng add schematic to support Angular CLI version 15 (#47763)
Prior to this, the `@angular/localize/init` was added as a polyfill which caused the `@angular/localize` types not to be included in the TypeScript program which caused errors such as the below:

```
Error: src/app/app.component.ts:9:11 - error TS2304: Cannot find name '$localize'.
```

With the recent changes in the CLI (https://github.com/angular/angular-cli/pull/24032), adding `@angular/localize/init` as polyfil or in the `main.server.ts` is no longer necessary. Instead we add this as a TypeScript type. When users are running in JIT mode, we add `@angular/localize/init` as an additional entrypoint.

This change also exposes the `$localize` method as a global when importing `@angular/localize`.

Closes #47677

PR Close #47763
2022-10-17 09:58:21 +02:00
..
init fix(localize): update ng add schematic to support Angular CLI version 15 (#47763) 2022-10-17 09:58:21 +02:00
tools refactor(localize): remove deprecated canParse method from TranslationParsers (#47275) 2022-09-06 09:57:02 -07:00
index.md refactor(localize): init APF entry-point should not duplicate code (#45405) 2022-04-21 11:09:39 -07:00