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

Translation when using <ng-content>

Open alucardu opened this issue 3 years ago • 0 comments

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?

alucardu avatar Jan 31 '22 10:01 alucardu