Skip to content

i18n placeholder syntax is duplicated in Angular templates #17861

@calebegg

Description

@calebegg

Prettier 3.6.2
Playground link

--parser angular

Input:

{{a() // i18n(ph = 'b')}}

Output:

{{ a(// i18n(ph = 'b')) // i18n(ph = 'b') }}

Expected output:

{{ a() // i18n(ph = 'b') }}

Why?

The Prettier change completely breaks the template.

Metadata

Metadata

Assignees

Labels

lang:angularIssues affecting Angular template (not general JS/TS issues used for Angular)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions