Skip to content

Empty i18n messages if .angular dir exists #22264

@destus90

Description

@destus90

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

In the previous angular versions there was no that directory.

Description

I have created a simple repo that demonstrates the issue. When you first run ng extract-i18n everything is fine, but once the .angular directory is created it stops working as expected - the generated file is empty.

🔬 Minimal Reproduction

https://github.com/destus90/i18n-issue

🔥 Exception or Error





🌍 Your Environment


Angular CLI: 13.0.3
Node: 16.10.0
Package Manager: npm 7.24.0
OS: win32 x64

Angular: 13.0.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1300.3
@angular-devkit/build-angular   13.0.3
@angular-devkit/core            13.0.3
@angular-devkit/schematics      13.0.3
@angular/cli                    13.0.3
@schematics/angular             13.0.3
rxjs                            7.4.0
typescript                      4.4.4


Anything else relevant?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions