Skip to content

fix: i18n property bindings should use Bindings marker, not I18n marker in consts#6

Merged
Brooooooklyn merged 1 commit into
mainfrom
02-04-fix_i18n_attribute_marker_consts
Feb 4, 2026
Merged

fix: i18n property bindings should use Bindings marker, not I18n marker in consts#6
Brooooooklyn merged 1 commit into
mainfrom
02-04-fix_i18n_attribute_marker_consts

Conversation

@Brooooooklyn
Copy link
Copy Markdown
Member

@Brooooooklyn Brooooooklyn commented Feb 4, 2026

Angular's compiler never produces I18n AttributeMarker (6) in consts arrays. The previous override in attribute_extraction converted i18n property bindings to BindingKind::I18n, creating duplicate consts entries that shifted all subsequent const indices. This fixes 8 mismatched files (~396 numeric diffs).


Note

Medium Risk
Changes how i18n-annotated property/interpolated bindings are represented in the emitted consts array, which can affect directive matching and const index stability across templates. Scope is narrow and backed by targeted integration tests, but it alters generated output.

Overview
Stops overriding UpdateOp::Property bindings to BindingKind::I18n during attribute extraction, and instead emits the property op’s existing binding_kind so i18n annotations don’t create extra/shifted consts entries.

Updates integration coverage to assert i18n-marked property and interpolated attributes produce the Bindings marker (3) and explicitly do not emit the I18n marker (6) in consts arrays.

Written by Cursor Bugbot for commit abfa8eb. This will update automatically on new commits. Configure here.

…er in consts

Angular's compiler never produces I18n AttributeMarker (6) in consts arrays.
The previous override in attribute_extraction converted i18n property bindings
to BindingKind::I18n, creating duplicate consts entries that shifted all
subsequent const indices. This fixes 8 mismatched files (~396 numeric diffs).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Brooooooklyn Brooooooklyn changed the title fix: i18n property bindings should use Bindings marker, not I18n mark… fix: i18n property bindings should use Bindings marker, not I18n marker in consts Feb 4, 2026
@Brooooooklyn Brooooooklyn merged commit b1141ac into main Feb 4, 2026
3 checks passed
@Brooooooklyn Brooooooklyn deleted the 02-04-fix_i18n_attribute_marker_consts branch February 4, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant