mirror of
https://github.com/angular/angular.git
synced 2026-11-29 09:57:50 -05:00
I18n expressions logically have both a target and an owner: - For i18n text expressions, the owner is the i18nStart instruction. The target is initially the same, but later moves to be the last slot consumer in the i18n block. - For i18n attribute expressions, the owner is the I18nAttributes config instruction, whereas the target is the ElementCreate that hosts the attribute. This refactor makes the code clearer in quite a few plases. Additionally, we now perform a lot of the i18n processing earlier. For example, re-targeting and re-ordering of i18n expressions happens *before* apply instructions are generated. As a result, the re-ordering logic is a lot simpler. These changes also have consequences on i18n const collection, along with a couple other minor changes. PR Close #53376