Add @angular/localize/init polyfill import
ProprietaryAdds import '@angular/localize/init' to polyfills.ts. Angular 9 introduced the $localize runtime API for i18n. Projects using internationalization must import this polyfill or the application will fail at runtime with $localize is not defined. The @angular/localize package must also be added as a dependency.
org. openrewrite. angular. migration. add-localize-polyfillmod run . --recipe= org. openrewrite. angular. migration. add-localize-polyfillInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.