angular/packages/localize/tools/src
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
..
extract feat(localize): support "associated message ids" for placeholders (#43534) 2021-10-18 09:23:59 -07:00
migrate refactor: update yargs to new API for ESM compatibility (#43431) 2021-10-01 18:28:45 +00:00
translate refactor: update yargs to new API for ESM compatibility (#43431) 2021-10-01 18:28:45 +00:00
babel_core.ts refactor: make all imports compatible with ESM/CJS output. (#43431) 2021-10-01 18:28:45 +00:00
diagnostics.ts refactor: move localize/src/tools into localize/tools folder (#43431) 2021-10-01 18:28:44 +00:00
source_file_utils.ts refactor: make all imports compatible with ESM/CJS output. (#43431) 2021-10-01 18:28:45 +00:00