angular / angular/angular-cli

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

オープン
#8,947 コメント 17 件 リアクション 23 件 担当者 0 名 GitHub で見る
area: @angular-devkit/build-angular devkit/build-angular:i18n feature feature: insufficient votes
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。