Skip to content

dir attribute is not set for default locale en-US #22285

Description

@cexbrayat

🐞 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?

No, this is a new feature introduced in v13.1.0-next.3

Description

Running ng build --localize in a brand new CLI app generated with v13.1.0-next.3 outputs the following warning:

Locale data for 'en-US' cannot be found. 'dir' attribute will not be set for this locale.

🔬 Minimal Reproduction

npx @angular/cli@13.1.0-next.3 new dir-attribute --defaults
cd dir-attribute
ng add @angular/localize@13.1.0-next.3
ng build --localize

🔥 Exception or Error


Locale data for 'en-US' cannot be found. 'dir' attribute will not be set for this locale.

🌍 Your Environment


Angular CLI: 13.1.0-next.3
Node: 14.18.1
Package Manager: npm 6.14.14
OS: darwin x64

Angular: 13.0.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1301.0-next.3
@angular-devkit/build-angular   13.1.0-next.3
@angular-devkit/core            13.1.0-next.3
@angular-devkit/schematics      13.1.0-next.3
@angular/cli                    13.1.0-next.3
@angular/localize               13.1.0-next.3
@schematics/angular             13.1.0-next.3
rxjs                            7.4.0
typescript                      4.4.4

Anything else relevant?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions