You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Reacted by Alan Agius, Daniel Schuba and Vadim Ovchinnikov
I gave that issue a look. Removing that export will remove the entry for $localize() in the doc. Do we have other occurences of non exported functions that are available in the doc ?
Activity
alan-agius4 commentedon Dec 20, 2022
As a side-note
@angular/localize/initcan also be deprecated as it is mainly used as a re-export of the global declaration from@angular/localizerefactor(localize): deprecate `@angular/localize/init`
JeanMeche commentedon Jun 30, 2023
I gave that issue a look. Removing that export will remove the entry for
$localize()in the doc. Do we have other occurences of non exported functions that are available in the doc ?fix(@angular/build): warn when `@angular/localize/init` is imported d…
fix(@angular/build): warn when `@angular/localize/init` is imported d…
fix(@angular/build): warn when `@angular/localize/init` is imported d…
fix(@angular/build): warn when `@angular/localize/init` is imported d…
fix(@angular/build): warn when `@angular/localize/init` is imported d…