Is there a chance to do translation for HTML Attributes that will be retrieved from typescript functions? For example, please see below.
<myCustomElement buttonId="personDetails" [title]="CustomSectionDisplayName('PersonDetails')" link="Person details" linkText="Name, age and gender"></myCustomElement>
For the above code, I would like to translate the value arriving in [title] attribute. For static values, we can achieve this. But here, it is dynamic. So, can someone suggest me any option we have in i18n?
[Note: I am not expecting answers as we can achieve thro other libraries like ngx-translate and so and so.]
I want to know this badly. Kindly let me know.