mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| api.ts | ||
| compiler_host.ts | ||
| entry_points.ts | ||
| inline_resources.ts | ||
| lower_expressions.ts | ||
| metadata_cache.ts | ||
| metadata_reader.ts | ||
| nocollapse_hack.ts | ||
| node_emitter.ts | ||
| node_emitter_transform.ts | ||
| program.ts | ||
| r3_metadata_transform.ts | ||
| r3_strip_decorators.ts | ||
| r3_transform.ts | ||
| util.ts | ||