angular-cn/packages/compiler-cli/test/compliance
Olivier Combe 91c7b451d5 feat(ivy): support i18n without closure (#28689)
So far using runtime i18n with ivy meant that you needed to use Closure and `goog.getMsg` (or a polyfill). This PR changes the compiler to output both closure & non-closure code, while the unused option will be tree-shaken by minifiers.
This means that if you use the Angular CLI with ivy and load a translations file, you can use i18n and the application will not throw at runtime.
For now it will not translate your application, but at least you can try ivy without having to remove all of your i18n code and configuration.
PR Close #28689
2019-04-11 08:28:45 -07:00
..
BUILD.bazel build(bazel): back out of @bazel/jasmine 0.27.7 with shard count (#29444) 2019-03-21 09:59:13 -07:00
README.md build: use bazel version from node modules (#26691) 2018-10-30 16:19:13 -04:00
mock_compile.ts test(ivy): compiler compliance tests should support ? (#25435) 2018-08-10 17:12:18 -07:00
mock_compiler_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_compiler_compliance_spec.ts perf(ivy): avoid storing raw selectors in projectionDef (#29578) 2019-04-11 08:09:09 -07:00
r3_view_compiler_binding_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_view_compiler_di_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_view_compiler_directives_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_view_compiler_i18n_spec.ts feat(ivy): support i18n without closure (#28689) 2019-04-11 08:28:45 -07:00
r3_view_compiler_input_outputs_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_view_compiler_listener_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_view_compiler_providers_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_view_compiler_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_view_compiler_styling_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
r3_view_compiler_template_spec.ts refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00

README.md

Tests in this directory should be run with:

yarn bazel test --define=compile=aot  packages/compiler-cli/test/compliance:compliance