angular-cn/packages/localize
Pete Bacon Darwin d529b55651 fix(ivy): i18n - correctly parse XLIFF placeholders (#34155)
The ViewEngine translation extractor does not convert `-` to `_` for
placeholders that represent custom elements. For example `<app-component>`
gets converted to placeholders like `START_TAG_APP-COMPONENT`.

In `$localize` placeholders are expected to be snake-case, not kebab-case.
So we must normalize them when parsing a translation file that might have
been created via the View Engine translation extractor.

The `$localize` extraction code will normalize these placeholders when
creating translation files in the first place.

Fixes #34151

PR Close #34155
2019-12-02 11:24:48 -08:00
..
init fix(ivy): i18n - start generated placeholder name at `PH` (#32493) 2019-09-17 15:13:30 -07:00
schematics feat(ivy): support ng-add in localize package (#32791) 2019-09-27 13:15:02 -07:00
src fix(ivy): i18n - correctly parse XLIFF placeholders (#34155) 2019-12-02 11:24:48 -08:00
test feat(ivy): i18n - implement compile-time inlining (#32881) 2019-10-09 13:19:38 -07:00
BUILD.bazel feat(ivy): i18n - implement compile-time inlining (#32881) 2019-10-09 13:19:38 -07:00
index.ts feat(ivy): i18n - implement compile-time inlining (#32881) 2019-10-09 13:19:38 -07:00
localize.ts feat(ivy): i18n - implement compile-time inlining (#32881) 2019-10-09 13:19:38 -07:00
package.json build: set up all packages to publish via wombot proxy (#33747) 2019-11-13 11:34:33 -08:00
private.ts feat(ivy): i18n - implement compile-time inlining (#32881) 2019-10-09 13:19:38 -07:00