ngx-translate动态数据

我是Angular的新手,我在整个应用程序中都使用ngx-translate,它运行良好,但是,即使在无法搜索整个Internet的情况下,我也无法弄清楚如何转换动态数据我不太了解如何实现这一目标,下面是我尝试过的方法,非常感谢您的协助。

en.json

"STATUS_actIVE": "active"

employees.component.html

<tbody>
    <ng-container *ngFor="let item of employees">
    <tr *ngFor="let employeeStatus of item.employeeJobStatuses">
      <td>{{ item.firstName_FL }}</td>
      <td>{{ item.position.name_FL }}</td>
      <td>{{ item.hiringDate | date }}</td>
      <td>{{ item.firstContractingSalary }}</td>
      <td>{{ (employeeStatus.status) | translate }}</td>
      <td>
        <div class="btn-group">
          <p><i type="button" (click)="editEmployee(item.id)" class="fa fa-pencil-square-o"></i></p>
          <p class="action-center" translate>employees.terminate</p>
          <p translate>employees.suspend</p>
        </div>

      </td>
    </tr>
  </ng-container>
</tbody>

请帮助我翻译employeeStatus.status

a283133294 回答:ngx-translate动态数据

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2908033.html

大家都在问