biesbjerg / ngx-translate-extract

Extract translatable (using ngx-translate) strings and save as a JSON or Gettext pot file
MIT License
524 stars 196 forks source link

Translations are not extracted from object in html template #252

Open A1ex4ndr opened 2 years ago

A1ex4ndr commented 2 years ago

I have ng-containers such as below to render some fields and pass the label via context, but extractor cant find this values to be extracted

<ng-template #fieldTemplate let-value let-label="label">
    <div class="col-lg-3 col-md-6 col-sm-12" [tooltip]="value">
        <span class="field-label">{{ label }}</span>
        {{ value }}
    </div>
</ng-template>
<ng-container *ngTemplateOutlet="fieldTemplate; context: {
    $implicit: someField.value,
    label: 'FieldLabel' | translate }">
</ng-container>