Skip to content

fix: i18n interpolated attributes use I18n marker and fix build-test script#17

Merged
Brooooooklyn merged 1 commit intomainfrom
fix/i18n-attribute-marker-and-build-test
Feb 9, 2026
Merged

fix: i18n interpolated attributes use I18n marker and fix build-test script#17
Brooooooklyn merged 1 commit intomainfrom
fix/i18n-attribute-marker-and-build-test

Conversation

@Brooooooklyn
Copy link
Copy Markdown
Member

@Brooooooklyn Brooooooklyn commented Feb 9, 2026

Interpolated attributes with i18n markers (e.g., heading="Join {{ name }}" i18n-heading) now correctly use BindingKind::I18n (AttributeMarker 6) instead of BindingKind::Property (AttributeMarker 3). Pure property bindings ([attr]="expr" i18n-attr) keep the Property marker since the runtime uses domProperty, not i18nAttributes.

Also fixes the build-test script which was broken due to double --features flags, and adds the build:ts step for TypeScript compilation.


Note

Medium Risk
Touches compiler IR attribute extraction and consts marker selection for i18n, which can affect directive matching and const array stability across templates; test updates reduce regression risk.

Overview
Fixes attribute extraction so interpolated attributes with i18n metadata (e.g. heading="Join {{name}}" i18n-heading) are extracted with BindingKind::I18n (AttributeMarker 6), while pure property bindings with i18n markers remain BindingKind::Property (marker 3).

Updates/extends integration coverage to assert the new marker behavior and prevent consts-array index shifts in control-flow scenarios, and fixes napi/angular-compiler’s build-test script to avoid broken feature flags and ensure TypeScript artifacts are built.

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

…script

Interpolated attributes with i18n markers (e.g., heading="Join {{ name }}"
i18n-heading) now correctly use BindingKind::I18n (AttributeMarker 6) instead
of BindingKind::Property (AttributeMarker 3). Pure property bindings
([attr]="expr" i18n-attr) keep the Property marker since the runtime uses
domProperty, not i18nAttributes.

Also fixes the build-test script which was broken due to double --features
flags, and adds the build:ts step for TypeScript compilation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Brooooooklyn Brooooooklyn force-pushed the fix/i18n-attribute-marker-and-build-test branch from bd9baa1 to 480a846 Compare February 9, 2026 14:47
@Brooooooklyn Brooooooklyn merged commit 55ed478 into main Feb 9, 2026
3 checks passed
@Brooooooklyn Brooooooklyn deleted the fix/i18n-attribute-marker-and-build-test branch February 9, 2026 15:00
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