mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously when we found an ICU that was the only translatable content in its i18n block, we assigned the block's i18n context to the ICU. However, we neglected to set the contextKind to inidcate that the context was associated with an ICU. As of this change we now set the correct contextKind. This change also refactors the context creation to explicitly separate creation of contexts for attributes, root i18n blocks, child i18n blocks, and ICUs. This allows us to more easily ensure that contexts are shared appropriately between i18n blocks and ICUs. Finally, this change also refactors the i18n message extraction pahse to simplify how contexts are converted to i18n messages. This simplification should make it easier to merge i18n contexts and i18n messages into a single op in a future refactor. PR Close #53557 |
||
|---|---|---|
| .. | ||
| integrationtest | ||
| linker | ||
| ngcc | ||
| private | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| esbuild.config.js | ||
| index.ts | ||
| package.json | ||
| tsconfig-build.json | ||
| tsconfig.json | ||