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 |
||
---|---|---|
.. | ||
aot | ||
css_parser | ||
expression_parser | ||
i18n | ||
ml_parser | ||
output | ||
render3 | ||
schema | ||
selector | ||
template_parser | ||
BUILD.bazel | ||
compiler_facade_interface_spec.ts | ||
config_spec.ts | ||
core_spec.ts | ||
directive_lifecycle_spec.ts | ||
directive_normalizer_spec.ts | ||
directive_resolver_mock_spec.ts | ||
directive_resolver_spec.ts | ||
integration_spec.ts | ||
metadata_resolver_fixture.ts | ||
metadata_resolver_spec.ts | ||
ng_module_resolver_mock_spec.ts | ||
ng_module_resolver_spec.ts | ||
parse_util_spec.ts | ||
pipe_resolver_mock_spec.ts | ||
pipe_resolver_spec.ts | ||
resource_loader_mock_spec.ts | ||
runtime_compiler_spec.ts | ||
shadow_css_spec.ts | ||
spies.ts | ||
style_url_resolver_spec.ts | ||
test_bindings.ts | ||
url_resolver_spec.ts | ||
util_spec.ts |