Skip to content

Bug: Template strings not being extracted when using self-closing tags #155

@aleesaan

Description

@aleesaan

Is there an existing issue for this?

  • I have searched the existing issues

Is this a regression?

No

Current behavior

Angular 15.1.0 has introduced self-closing tags for custom elements, but when trying to extract keys from a template using self-closing tags, no keys get extracted.

Expected behavior

Keys should be extracted also in files using self-closing tags.

Please provide a link to a minimal reproduction of the bug

Transloco Config

No response

Debug Logs

No response

Please provide the environment you discovered this bug in

Transloco: 4.2.6
Transloco Keys Manager: 3.7.0
Angular: 15.1.x
Node: 16
Package Manager: 8
OS:

Additional context

Simply updating the @angular/compiler to >=15.1 should do the trick, as it will correctly parse the nodes for files with self-closing custom tags.

I would like to make a pull request for this bug

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions