angular/packages/localize
Pete Bacon Darwin d3cf222a81 feat(localize): support "associated message ids" for placeholders (#43534)
When extracting i18n messages, the Angular compiler needs to split ICU expressions
into their own message.  Currently there is no guaranteed way to re-associate
the ICU message with the original message where the ICU was found.

This change adds support in the localize tooling so that associated ids can be
stored as metadata in the `$localize` tagged strings. These ids can then be
used in generated translation files to provide a link between the two messages.

The XLIFF 1.2 and 2.0 formats have been updated to render these relationships,
via the `xid` and `subFlows` attributes respectively.

PR Close #43534
2021-10-18 09:23:59 -07:00
..
init docs: internationalization topics (#43819) 2021-10-14 15:53:24 -07:00
schematics refactor: update $schema and id keywords (#41574) 2021-04-14 18:50:32 -07:00
src feat(localize): support "associated message ids" for placeholders (#43534) 2021-10-18 09:23:59 -07:00
test build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tools feat(localize): support "associated message ids" for placeholders (#43534) 2021-10-18 09:23:59 -07:00
BUILD.bazel refactor: expose new @angular/localize/tools entry-point for CLI usage (#43431) 2021-10-01 18:28:44 +00:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
localize.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json feat(core): update node version support range to support v16 (#43740) 2021-10-06 10:55:44 -07:00
PACKAGE.md docs(localize): expose documentation for the @angular/localize package (#40317) 2021-03-19 12:36:10 -07:00
private.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00