【发布时间】:2019-09-02 06:52:32
【问题描述】:
所以我在一个项目中使用内置的 angular i18n 国际化网络。
但显然在他们的代码中,他们使用 innerHtml 来显示警告,我似乎无法在官方文档中找到将其国际化的方法。
html获取innerHtml使用函数:
<p [innerHtml]="getMoveWarningMessage()"></p>
虽然 ts 看起来像这样:
return `
By moving <strong>${this.movedSite.name || 'this site'}</strong> you will also be moving the
${sampleCount}
${activeJobCount}
${observationCount}
linked to this site. Do you still want to move this site?
`;
有什么方法可以使用 angular i18n 翻译它吗?
【问题讨论】:
标签: angular internationalization angular-i18n