Skip to content

Angular Update to v9 does not include the changes in i18n #16327

@Karasuni

Description

@Karasuni

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

N/A

Description

The upgrade function and guide does not include the breaking changes in localization. I expect this to be mentioned in the guide ('checkbox I use i18n') and/or to be automatically configured along with the other breaking changes from 8 to 9.

🔬 Minimal Reproduction

  1. Create an angular 8 workspace: ng new
  2. Add ngx-translate: npm install @ngx-translate/core --save
  3. Follow the steps to upgrade from angular 8 to angular 9: https://update.angular.io/#8.0:9.0
  4. Run the project and observe the error below

🔥 Exception or Error

core.js:31686 Uncaught Error: It looks like your application or one of its dependencies is using i18n.
Angular 9 introduced a global `$localize()` function that needs to be loaded.
Please run `ng add @angular/localize` from the Angular CLI.
(For non-CLI projects, add `import '@angular/localize/init';` to your `polyfills.ts` file.
For server-side rendering applications add the import to your `main.server.ts` file.)

🌍 Your Environment

Angular CLI: 9.0.0-rc.4
Node: 13.0.1
OS: linux x64

Angular: 9.0.0-rc.4
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-rc.4
@angular-devkit/build-angular     0.900.0-rc.4
@angular-devkit/build-optimizer   0.900.0-rc.4
@angular-devkit/build-webpack     0.900.0-rc.4
@angular-devkit/core              9.0.0-rc.4
@angular-devkit/schematics        9.0.0-rc.4
@angular/fire                     5.2.3
@ngtools/webpack                  9.0.0-rc.4
@schematics/angular               9.0.0-rc.4
@schematics/update                0.900.0-rc.4
rxjs                              6.5.3
typescript                        3.6.4
webpack                           4.41.2

Anything else relevant?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions