我用法语构建了一个Angular应用程序,现在我想使用国际化(i18n)将其提供给其他语言,例如英语。问题是Angular的默认语言环境是en-US,当我写下这个代码 Mes endroits 时,它就会变成这样:
<file source-language= "en-US" datatype="plaintext" original="ng2.template">// source is English
<body>
<trans-unit id="4df6e2173dc9d9f8c60481273cf3371981e60fde" datatype="html">
<source>Mes endroits</source> ... // but this is in french
我希望源语言为fr,例如提供 messages.en.xlf
那么我可以将默认区域设置更改为 fr,还是必须重新编写用法并提供messages.fr.xlf