I know this question is pretty old but I think its still relivant with Angular 19
I have a library that uses $localize
I currently import @angular/localize/init
in my libraries entry file
This works fine, however, when I serve an application that uses my library, I get the following warning
▲ [WARNING] Direct import of '@angular/localize/init' detected. This may lead to undefined behavior. [plugin angular-localize-init-warning]
libs/aspect/ui/src/index.ts:4:7:
4 │ import '@angular/localize/init';
There must be an official way to do this but I cant find it :(
For context, I am using an nx monorepo.