【发布时间】:2017-08-19 16:14:02
【问题描述】:
我正在尝试查看 Angular CLI 中是否有本地工作流
- 提取翻译
- 发送和接收翻译返回
- 使用新的复制块更新代码
- 再次提取 // 故障点
- 发送和接收翻译返回
如果我提取新的翻译会破坏旧的翻译。是否有协调两个提取的过程?还是有计划?预计开发团队会推出自己的产品吗?只求清晰
HTML:
<h1>Hello i18n!</h1>
-
提取翻译:
<body> <trans-unit id="introductionHeader" datatype="html"> <source>Hello i18n!</source> <context-group purpose="location"> <context context-type="sourcefile">src/app/app.component.ts</context> <context context-type="linenumber">1</context> </context-group> <note priority="1" from="description">An introduction header for this sample</note> <note priority="1" from="meaning">site header</note> </trans-unit> </body> -
发送和接收翻译返回
<body> <trans-unit id="introductionHeader" datatype="html"> <source>Hello i18n!</source> <target>HERRO i18n!</target> <context-group purpose="location"> <context context-type="sourcefile">src/app/app.component.ts</context> <context context-type="linenumber">1</context> </context-group> <note priority="1" from="description">An introduction header for this sample</note> <note priority="1" from="meaning">site header</note> </trans-unit> </body> -
使用新的复制块更新代码
<h1>Hello i18n!</h1><h1>Goodbye i18n!</h1> 再次提取将删除
<target>translated content</target>
因此所有内容都必须重新翻译。
有这方面的工作流程吗?
【问题讨论】:
标签: angular internationalization workflow text-extraction