-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
I 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>