Skip to content

ng build with i18n creates extra layer of lang folders #16384

Closed
@spock123

Description

@spock123

🐞 Bug report

Command (mark with an x)

  • new
  • [X ] build

Is this a regression?

<
!-- Did this behavior use to work in the previous version? -->

Yes, the previous version in which this bug was not present was: ....

Description

My application supports 3 locals: da, sv and en. When using CLI v.8.x it works as expected, creating a folder for each language build in the dist folder (see attached image)

When using latest CLI v.9-rc.5 , the build creates double folders, so /dist/da becomes /dist/da/da etc.. (see attached image)

🌍 Your Environment


Angular CLI: 9.0.0-rc.5
Node: 12.13.1
OS: darwin x64

Angular: 9.0.0-rc.5
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, localize, material
... material-moment-adapter, platform-browser
... platform-browser-dynamic, router, service-worker
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-rc.5
@angular-devkit/build-angular     0.900.0-rc.5
@angular-devkit/build-optimizer   0.900.0-rc.5
@angular-devkit/build-webpack     0.900.0-rc.5
@angular-devkit/core              8.3.20
@angular-devkit/schematics        8.3.20
@angular/fire                     5.2.3
@ngtools/webpack                  9.0.0-rc.5
@schematics/angular               9.0.0-rc.5 (cli-only)
@schematics/update                0.900.0-rc.5
rxjs                              6.5.3
typescript                        3.6.4
webpack                           4.41.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions