Skip to content

fix(localize): handle @angular/build:karma in ng add#60513

Closed
cexbrayat wants to merge 1 commit intoangular:mainfrom
cexbrayat:fix/karma-esbuild-add-localize
Closed

fix(localize): handle @angular/build:karma in ng add#60513
cexbrayat wants to merge 1 commit intoangular:mainfrom
cexbrayat:fix/karma-esbuild-add-localize

Conversation

@cexbrayat
Copy link
Copy Markdown
Member

@cexbrayat cexbrayat commented Mar 21, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

New applications generated by the CLI v20-next use the karma application builder by default.
When running ng add this builder is ignored, and the localize polyfill is not added in the test configuration.

What is the new behavior?

ng add @angular/localize now also adds the localize polyfill to the configuration of Karma if the @angular/build:karma builder is used (which is the default in Angular CLI v20)

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@cexbrayat cexbrayat requested a review from clydin March 21, 2025 13:03
@pullapprove pullapprove bot requested a review from thePunderWoman March 21, 2025 13:03
@angular-robot angular-robot bot added the area: i18n Issues related to localization and internationalization label Mar 21, 2025
@ngbot ngbot bot added this to the Backlog milestone Mar 21, 2025
`ng add @angular/localize` now also adds the localize polyfill to the configuration of Karma if the `@angular/build:karma` builder is used
(which is the default in Angular CLI v20)
@cexbrayat cexbrayat force-pushed the fix/karma-esbuild-add-localize branch from a3ec159 to adb3ca3 Compare March 21, 2025 13:07
Copy link
Copy Markdown
Contributor

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Mar 21, 2025
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thePunderWoman thePunderWoman added the action: merge The PR is ready for merge by the caretaker label Mar 21, 2025
@alxhub
Copy link
Copy Markdown
Member

alxhub commented Mar 21, 2025

This PR was merged into the repository by commit 7408a1f.

The changes were merged into the following branches: main, 19.2.x

alxhub pushed a commit that referenced this pull request Mar 21, 2025
`ng add @angular/localize` now also adds the localize polyfill to the configuration of Karma if the `@angular/build:karma` builder is used
(which is the default in Angular CLI v20)

PR Close #60513
@alxhub alxhub closed this in 7408a1f Mar 21, 2025
JeanMeche added a commit to JeanMeche/angular that referenced this pull request Mar 23, 2025
devversion pushed a commit that referenced this pull request Mar 24, 2025
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: i18n Issues related to localization and internationalization target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants