Repository navigation
refactor(frontend): remove unused @angular/localize - #9752
Open
aglinxinyuan wants to merge 1 commit into
Open
aglinxinyuan wants to merge 1 commit into
aglinxinyuan wants to merge 1 commit into
Conversation
Nothing in the frontend imports @angular/localize or uses $localize. The polyfill that loaded it was removed with the i18n setup in apache#2348, and the manifest line came back with the Angular 14 bump in apache#2309. Dropping it also drops the four @types/babel__* packages that only it pulled in.
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9752 +/- ##
=========================================
Coverage 91.79% 91.79%
Complexity 5135 5135
=========================================
Files 1309 1309
Lines 58069 58069
Branches 7561 7561
=========================================
Hits 53304 53304
Misses 2877 2877
Partials 1888 1888
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Remove the unused
@angular/localizedependency from the frontend (+2/−64 lines, all but one of them inyarn.lock). Nothing uses it, so there is no behaviour change: no file imports@angular/localizeor calls$localize, andangular.jsonbuilds withzone.jsas its only polyfill and has no i18n options.yarn.lockalso loses the four@types/babel__*packages that only@angular/localizerequired. The@babel/parserand@babel/typesentries stay; they only drop the version ranges those packages asked for, which are the two added lines.@angular/localize/initpolyfill; the manifest line was put back without it by #2309 (2024-02-24)As of 2026-11-29, nothing has used it for almost two years and ten months.
Any related issues, documentation, discussions?
Closes #9751.
How was this PR tested?
Ran on this branch (Windows 11, Node 24.15.0), from
frontend/unless noted:yarn install --immutableaccepts the updated lockfile, and every other command passes.OK: 135 npm packages match LICENSE-binary.yarn test: 257 test files, 7,432 tests pass and 1 is skipped (theit.skipalready inoperator-property-edit-frame.component.spec.ts).To re-check, this returns no hits on this branch:
The
yarn.locklines that still mention it are optional peer dependencies of Angular's build tooling.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)