angular / angular/angular-cli

xi18n should parse index.html and build should fill in the translated texts in index.html

未关闭
#8,947 17 条评论 23 个 reaction 已指派 0 人 在 GitHub 查看
area: @angular-devkit/build-angular devkit/build-angular:i18n feature feature: insufficient votes
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
162

描述

### Versions
```
Angular CLI: 1.6.0
Node: 8.9.1
OS: darwin x64
Angular: 5.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic, router
... service-worker

@angular/cdk: 5.0.0
@angular/cli: 1.6.0
@angular/material: 5.0.0
@angular-devkit/build-optimizer: 0.0.35
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.41
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.0
@schematics/angular: 0.1.10
@schematics/schematics: 0.0.10
typescript: 2.4.2
webpack: 3.10.0
```

### Repro steps

* in index.html, use the i18n marker like

please wait...


* run ng xi18n
* the 'please wait' does not popup in the gererated .xlf files
* run ng build ng build -prod --aot --output-path=dist/de --base-href /de/ --i18n-file=src/i18n/messages.de.xlf --i18n-format=xlf --locale=de;

### Observed behavior
```

```

### Desired behavior

贡献指南

打开贡献指南

调研方向

从包含 i18n 标记的 index.html 示例开始,然后运行 ng xi18n 和报告中的 ng build 命令,以重现缺失的条目和未翻译的输出。跟踪生成的 .xlf 文件和构建输出是如何产生的;当 index.html 中的文本出现在翻译文件中,并且翻译后的文本被填入构建出的 index.html 时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
build-system, localization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。