Skip to content

ng xi18n not extracting anything #8527

@armandoxxx

Description

@armandoxxx

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&nbsp;-&nbsp;new</span>
<span class="m-text-big" i18n="@@foodOrder.title">Food order&nbsp;-&nbsp;new</span>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions