angular-docs-cn/packages/compiler/test/i18n
Carlos Ortiz Garcia e99d860393 feat(compiler): add "original" placeholder value on extracted XMB (#25079)
Update XMB placeholders(<ph>) to include the original value on top of an
example. Placeholders can by definition have one example(<ex>) tag and a
text node. The text node is used by TC as the "original" value from the
placeholder, while the example should represent a dummy value.
For example: <ph name="PET"><ex>Gopher</ex>{{ petName }}</ph>.
This change makes sure that we have the original text, but it *DOES NOT*
make sure that the example is correct. The example has the same wrong
behavior of showing the interpolation text rather than a useful
example.

No breaking changes, but tools that depend on the previous behavior and
don't consider the full XMB definition may fail to parse the XMB.
Fixes b/72565847

PR Close #25079
2018-07-30 16:49:00 -07:00
..
serializers feat(compiler): add "original" placeholder value on extracted XMB (#25079) 2018-07-30 16:49:00 -07:00
digest_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
extractor_merger_spec.ts build: upgrade jasmine (and related typings) to latest version (#19904) 2018-07-06 13:48:02 -07:00
i18n_html_parser_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
i18n_parser_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
integration_common.ts build(bazel): Turning on strictPropertyInitialization for Angular. (#24572) 2018-06-25 07:57:13 -07:00
integration_xliff2_spec.ts fix(compiler): fix support for html-like text in translatable attributes (#23053) 2018-03-29 08:58:27 -07:00
integration_xliff_spec.ts fix(compiler): fix support for html-like text in translatable attributes (#23053) 2018-03-29 08:58:27 -07:00
integration_xmb_xtb_spec.ts feat(compiler): add "original" placeholder value on extracted XMB (#25079) 2018-07-30 16:49:00 -07:00
message_bundle_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
translation_bundle_spec.ts fix(compiler): fix support for html-like text in translatable attributes (#23053) 2018-03-29 08:58:27 -07:00