-
Notifications
You must be signed in to change notification settings - Fork 26.5k
fix(compiler): error when ng-content fallback has translated children #63156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.ts
Outdated
Show resolved
Hide resolved
currentOps!.i18nBlock, | ||
pendingStructuralDirective, | ||
); | ||
pendingStructuralDirective = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was also copied, but I'd expect this to be irrelevant for projected views?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have the full context on it, but I think we still need it because the Projection
op might not have a i18nPlaceholder
in which case the pendingStructuralDirective
won't have been reset further up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see; I missed that it's passed into the recordTemplate*
calls.
Fixes that the pipeline wasn't processing the fallback content of `ng-content` for i18n which resulted in a compiler error further down the line. Fixes angular#63065.
57cd3db
to
d369df8
Compare
This PR was merged into the repository by commit 5b3933f. The changes were merged into the following branches: main, 20.1.x, 20.2.x |
Fixes that the pipeline wasn't processing the fallback content of
ng-content
for i18n which resulted in a compiler error further down the line.Fixes #63065.