我想知道是否可以将 ngx-translate 与共价动态表单一起使用。我的模板如下图所示:
<td-dynamic-forms [elements]="dataElements">
</td-dynamic-forms>
我的 dataElements 数组:
this.dataElements = [
{
'name': 'name',
'label': 'NAME',
'type': 'text',
'disabled': true,
'required': true,
'default': this.application ? this.application.name : ''
},
{
'name': 'description',
'label': 'DESCRIPTION',
'type': 'textarea',
'required': false,
'default': this.application ? this.application.description : ''
},
];
我想使用 ngx-translate 翻译标签。我在其他常规表单中使用相同,但我想知道是否可以在动态表单中使用翻译。