在我的 Angular 7 应用程序中,我有一个带有嵌套标签的 html,如下所示 -
<p i18n="@@footerText">Some Text Here
<a i18n="@@footerLink" href="http://url.com" target="_blank">Link Text</a>
Another Text Here
</P>
Run Code Online (Sandbox Code Playgroud)
当执行以下命令时
ng xi18n --output-path translate
Run Code Online (Sandbox Code Playgroud)
它引发错误 -
错误:无法将元素标记为可翻译部分中的可翻译
如何将 i18n 与嵌套标签一起使用?