Skip to content

Conversation

@alan-agius4
Copy link
Contributor

This commit addresses an issue where the @angular/localize/init polyfill is not included when there are no polyfills specified in the angular.json file.

…son`

This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file.
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jun 6, 2024
This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their `polyfills` configuration.

The `ng add` schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: angular#27786
@alan-agius4 alan-agius4 requested a review from clydin June 6, 2024 08:08
@alan-agius4 alan-agius4 marked this pull request as ready for review June 6, 2024 08:08
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Jun 6, 2024
@pullapprove pullapprove bot requested a review from AndrewKushnir June 6, 2024 08:08
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer area: i18n Issues related to localization and internationalization labels Jun 6, 2024
@ngbot ngbot bot modified the milestone: Backlog Jun 6, 2024
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jun 6, 2024
This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their `polyfills` configuration.

The `ng add` schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: angular#27786
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jun 6, 2024
This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their `polyfills` configuration.

The `ng add` schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: angular#27786
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jun 6, 2024
This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their `polyfills` configuration.

The `ng add` schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: angular#27786
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jun 6, 2024
This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their `polyfills` configuration.

The `ng add` schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: angular#27786
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jun 6, 2024
This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their `polyfills` configuration.

The `ng add` schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: angular#27786
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Jun 6, 2024
This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file. However, this approach has a drawback: the localize polyfill will always be added if it is found in a monorepo, even if an application does not use i18n.

As a result, we will issue a warning to inform users about this behavior and encourage them to explicitly add it to their `polyfills` configuration.

The `ng add` schematic will also be updated to add the polyfill as in the builders config, see: angular/angular#56300

Closes: angular#27786
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

@alan-agius4 looks great, I've just added a couple minor comments.

Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

👍

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 6, 2024
@alxhub
Copy link
Member

alxhub commented Jun 6, 2024

This PR was merged into the repository by commit 81486c2.

alxhub pushed a commit that referenced this pull request Jun 6, 2024
…son` (#56300)

This commit addresses an issue where the `@angular/localize/init` polyfill is not included when there are no polyfills specified in the `angular.json` file.

PR Close #56300
@alxhub alxhub closed this in 81486c2 Jun 6, 2024
@alan-agius4 alan-agius4 deleted the localize-polyfill branch June 6, 2024 20:42
cexbrayat added a commit to cexbrayat/angular-cli that referenced this pull request Jul 1, 2024
It can be re-enabled now that angular/angular#56300 have been released in v18.1.0-next.2
cexbrayat added a commit to cexbrayat/angular-cli that referenced this pull request Jul 1, 2024
It can be re-enabled now that angular/angular#56300 have been released in v18.1.0-next.2
cexbrayat added a commit to cexbrayat/angular-cli that referenced this pull request Jul 1, 2024
It can be re-enabled now that angular/angular#56300 have been released in v18.1.0-next.2
cexbrayat added a commit to cexbrayat/angular-cli that referenced this pull request Jul 1, 2024
It can be re-enabled now that angular/angular#56300 have been released in v18.1.0-next.2
clydin pushed a commit to angular/angular-cli that referenced this pull request Jul 1, 2024
It can be re-enabled now that angular/angular#56300 have been released in v18.1.0-next.2
clydin pushed a commit to angular/angular-cli that referenced this pull request Jul 1, 2024
It can be re-enabled now that angular/angular#56300 have been released in v18.1.0-next.2

(cherry picked from commit 355ae1a)
@angular-automatic-lock-bot
Copy link

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 Jul 7, 2024
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.

4 participants