Skip to content

Remove $localize export #48545

@dgp1130

Description

@dgp1130

Which @angular/* package(s) are relevant/related to the feature request?

localize

Description

In angular/angular-cli#24145 (comment), we discovered that the compiler expects $localize to be used as global, not imported from @angular/localize/init. This is confusing and leads to users misusing the function.

Proposed solution

We should remove the exported $localize from this package and instead let users depend on it via the global declaration.

Alternatives considered

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: i18nIssues related to localization and internationalization

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions