Closed simionrobert closed 7 months ago
I have the same issue.
It seems like the translation takes place to late. The issue occurs in <div matformfieldnotchedoutline="" class="mdc-notched-outline ng-tns-c35-12 mdc-notched-outline--no-label ng-star-inserted" ng-reflect-open="false" ng-reflect-label-width="200">
. It adds "no-label.
My solution is to translate it in the ts file and add a listener as well to translate it there, than use the variable in the HTML [label] tag.
// needed as the mat-country-picker has a bug with the translation inline. seems like the translation takes place to late and no-label is used instead.
this.countryTranslation = this.translateService.instant('CHECKOUT.FORM.COUNTRY');
this.translateService.onLangChange.subscribe(() => {
this.countryTranslation = this.translateService.instant('CHECKOUT.FORM.COUNTRY');
})`
Describe the bug The label is not shown when using angular material stepper with reactive forms and ngx-translate. It will appear only if the user clicks on it:
Screenshots
Desktop (please complete the following information):