xi18n should parse index.html and build should fill in the translated texts in index.html
- Lingua principale
- TypeScript
- Stelle
- 27k
- Fork
- 11.8k
- Merge medio
- 14h 23m
- PR unite (30g)
- 162
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con l’esempio index.html contenente il marcatore i18n, quindi esegui ng xi18n e il comando ng build indicato per riprodurre la voce mancante e l’output non tradotto. Traccia il modo in cui vengono prodotti i file .xlf generati e l’output della build; l’attività è completata quando il testo di index.html appare nel file di traduzione e il testo tradotto viene inserito nell’index.html compilato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- build-system, localization
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100