ng xi18n not extracting anything
See original GitHub issueI followed docs on Angular 5 internationalization and can’t figure out what’s wrong. Can someone please explain to me what am I doing wrong ?
Versions
Angular CLI: 1.5.0
Node: 9.1.0
OS: linux x64
Angular: 5.0.1
… animations, common, compiler, compiler-cli, core, forms
… http, language-service, platform-browser
… platform-browser-dynamic, router
@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.1
typescript: 2.4.2
webpack: 3.8.1
Repro steps
cd project ng xi18n ng xi18n --output-path=src/locale
Observed behavior
Nothing happens
Desired behavior
would like to see extracted translation file.
Mention any other details that might be useful (optional)
example tags from template i tried with:
<span class="m-text-big" i18n>Food order - new</span>
<span class="m-text-big" i18n="@@foodOrder.title">Food order - new</span>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:8 (1 by maintainers)
The same for me. I’m on Windows 10 x64, Node 8.7 No errors shown but the x18n process takes unusually short time (20-30 secs, it was about 2-3 minutes when this tool works)).
Tried cli 1.5.3 and 1.6.0-beta.2 - the problem remains
It looks like the fix is in master https://github.com/angular/angular-cli/pull/8480 but not yet released