ngx-translate-extract icon indicating copy to clipboard operation
ngx-translate-extract copied to clipboard

Find pipe uses in inputs to structural directives

Open P4 opened this issue 3 years ago • 1 comments

After finally upgrading from 3.0.5 to a recent version we've noticed the pipe parser no longer detects usages like this:

<ng-container *ngTemplateOutlet="section; context: {
  title: 'example.translation.key' | translate
}"></ng-container>

Turns out it's because inputs to structural directives were not being searched at all.

This PR adds handling of templateAttrs on Template nodes that works identically to inputs.

P4 avatar Aug 30 '21 11:08 P4

@biesbjerg Hi, are you free to review this? We are also facing the same problem. Thanks in advance.

ismailcherri avatar Nov 27 '21 10:11 ismailcherri

@ismailcherri I've re-made the pull request under a different fork mentioned in https://github.com/biesbjerg/ngx-translate-extract/issues/246#issuecomment-1353101571

P4 avatar Dec 21 '22 13:12 P4