I have an element I want to translate using i18n from angular. The part that I want to translate is the matTooltip but the value is a select. I know that I have to use i18n-matTooltip
to make it work. I should use this syntax <span i18n>The author is {gender, select, male {male} female {female} other {other}}</span>
from the docs but I get an error doing so.
Uncaught Error: Template parse errors:
Parser Error: Missing expected : at column 9 in [{section.addTooltip,
select, test {test} test2 {test2} test3 {test3}}] in
ng:///AppModule/TestComponent.html@34:72 ("
</div>
This is what my element looks like:
<button mat-flat-button (click)="click()"
[matTooltip]="{section.addTooltip, select, test {test} test2 {test2} test3
{test3}}" matTooltipPosition="above" i18n-matTooltip>
Am I missing something?