是否可以在需要条件操作的字符串上使用i18n
<h2 i18n>{{ updateMode ? 'Edit' : 'Add'}}</h2>
答案 0 :(得分:0)
<h2 i18n>{{ updateMode ? 'Edit' : 'Add'}}</h2>
在您的.xlf文件中,您将获得类似的内容
<source>
<x id="INTERPOLATION" equiv-text="{{updateMode ? 'Edit': 'Add'}}"/>
</source>
目标应如下所示:
<target>
{{updateMode ? 'TranslatedValue1': 'TranslatedValue2'}}
</target>