angular-docs-cn/packages/compiler/test
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
..
aot perf: don't create holey arrays (#32155) 2019-08-21 08:27:43 -07:00
css_parser
expression_parser feat(ivy): record absolute position of template expressions (#31391) 2019-07-22 09:48:35 -07:00
i18n fix(compiler): do not remove whitespace wrapping i18n expansions (#31962) 2019-08-09 12:03:50 -07:00
ml_parser fix(compiler): do not remove whitespace wrapping i18n expansions (#31962) 2019-08-09 12:03:50 -07:00
output perf: don't create holey arrays (#32155) 2019-08-21 08:27:43 -07:00
render3 refactor(ivy): update the compiler to emit `$localize` tags (#31609) 2019-08-30 12:53:26 -07:00
schema
selector refactor: Move `dom_adapter.ts` to `@angular/common` (#32154) 2019-08-29 21:51:56 -07:00
template_parser perf: don't create holey arrays (#32155) 2019-08-21 08:27:43 -07:00
BUILD.bazel
compiler_facade_interface_spec.ts test(ivy): verify equality of ngBaseDef metadata between compiler and core (#31210) 2019-07-02 11:06:46 -07:00
config_spec.ts
core_spec.ts test(compiler): update examples and compiler tests (#30626) 2019-05-23 10:31:32 -07:00
directive_lifecycle_spec.ts
directive_normalizer_spec.ts
directive_resolver_mock_spec.ts
directive_resolver_spec.ts test(compiler): update examples and compiler tests (#30626) 2019-05-23 10:31:32 -07:00
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 refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00