fa79f51645
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 |
||
---|---|---|
.. | ||
snapshots | ||
.gitignore | ||
README.md | ||
package.json | ||
side-effects.json | ||
yarn.lock |
README.md
This test checks if the side effects for loading Angular packages have changed using https://github.com/filipesilva/check-side-effects.
Running yarn test
will check all ES modules listed in side-effects.json
.
Running yarn update
will update any changed side effects.
To add a new ES module to this test, add a new entry in side-effects.json
.
Usually the ESM and FESM should have the same output, but retained objects that were renamed during the flattening step will leave behind a different name.