I'm working on a reactive form on Angular 7, and I need to make a dropdown list with , and I need to translate options from english to french. Options are set in my Ts file. I've heard about ICU expressions, I've read the documentation but I don't understand how it could fit my case. Could someone help me ?
My HTML :
<select name="material" class="form-control input-underline input-lg" formControlName="material"
[(ngModel)]="portal.material" type="text" required i18n>
<option selected disabled value=undefined [ngValue]="null">Select a material</option>
<option *ngFor="let item of material_tab" [ngValue]="item">{{item.name}}</option>
</select>
My Ts :
materials_tab = [{ name: 'Wood' }, { name: 'Cardboard' }, { name: 'Plastic' }, { name: 'Paper' }, { name: 'Glass' }, { name: 'Metal' }, { name: 'Other' }];
Thanks in advance.