angular-docs-cn/integration/side-effects/snapshots
Pete Bacon Darwin fa79f51645 refactor(ivy): update the compiler to emit `$localize` tags (#31609)
This commit changes the Angular compiler (ivy-only) to generate `$localize`
tagged strings for component templates that use `i18n` attributes.

BREAKING CHANGE

Since `$localize` is a global function, it must be included in any applications
that use i18n. This is achieved by importing the `@angular/localize` package
into an appropriate bundle, where it will be executed before the renderer
needs to call `$localize`. For CLI based projects, this is best done in
the `polyfills.ts` file.

```ts
import '@angular/localize';
```

For non-CLI applications this could be added as a script to the index.html
file or another suitable script file.

PR Close #31609
2019-08-30 12:53:26 -07:00
..
animations test: add integration test for side effects (#29329) 2019-05-16 12:08:49 -07:00
animations-browser refactor: remove toplevel property accesses (#29329) 2019-05-16 12:08:49 -07:00
common perf(core): Make `PlatformLocation` tree-shakable (#32154) 2019-08-29 21:51:56 -07:00
core refactor(ivy): update the compiler to emit `$localize` tags (#31609) 2019-08-30 12:53:26 -07:00
elements refactor: remove toplevel property accesses (#29329) 2019-05-16 12:08:49 -07:00
forms perf(core): Make `PlatformLocation` tree-shakable (#32154) 2019-08-29 21:51:56 -07:00
platform-browser refactor: remove toplevel property accesses (#29329) 2019-05-16 12:08:49 -07:00
router perf(core): Make `PlatformLocation` tree-shakable (#32154) 2019-08-29 21:51:56 -07:00