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

Translation when using <ng-content> #255

Open alucardu opened 2 years ago

alucardu commented 2 years ago

I'm using content projection to pass some text to a component and I want that translated:

<app-card-title translate>General</app-card-title>

// app-card-title

<h4 class="cardTitle" translate>
    <ng-content></ng-content>
</h4>

When I run the translation extraction this shows up:

msgid "<ng-content></ng-content>"
msgstr ""

Which makes sense but is not wanted. Any chance to perhaps filter out certain strings when extracting translations?