我不确定如何在我的应用程序中对动态变量进行翻译。
目前,我在静态 json 文件中有报告描述。我正在遍历其内容并在 HTML 文件中使用字符串插值。有没有办法在不使用选择 ICU 表达式的情况下翻译 @angular/localize 中的插值字符串?
<ng-container style="display: none;" *ngFor="let report of reports">
<tr>
<td width="80%" class="colThree" i18n="reportDesc">
{{report.ReportDescription}} //need translate
</td>
</tr>
</ng-container>