Skip to content

Bug: ng xi18n --ivy does not extract i18n tokens from libraries #18871

@kyubisation

Description

@kyubisation

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

This works with ng xi18n

Description

ng xi18n --ivy does not extract i18n tokens from libraries, whereas ng xi18n is able to extract it from libraries compiled with ViewEngine.

🔬 Minimal Reproduction

https://github.com/kyubisation/xi18n-ivy-library-viewengine
Run npm ci && npm test (which build the ViewEngine and Ivy libraries and runs xi18n) and check messages.xlf

🌍 Your Environment



Angular CLI: 10.1.3
Node: 12.9.1
OS: win32 x64

Angular: 10.1.3
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1001.3
@angular-devkit/build-angular   0.1001.3
@angular-devkit/core            10.1.3
@angular-devkit/schematics      10.1.3
@schematics/angular             10.1.3
@schematics/update              0.1001.3
ng-packagr                      10.1.0
rxjs                            6.6.3
typescript                      4.0.3

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions