Skip to content

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Dec 9, 2022

This commit changes how we set the LOCALE_ID when using the localize option

  • We now include the locale setting snippet only in the main bundle.
  • We use globalThis to set the the value globally and be accessible across module boundaries. This is important as in some causes such as when using MF @angular/core can be located in a bundles others than main and vendor.

FYI: @Coly010

…use `globalThis`.

This commit changes how we set the `LOCALE_ID` when using the `localize` option

- We now include the locale setting snippet only in the main bundle.
- We use `globalThis` to set the the value globally and be accessible across module boundaries. This is important as in some causes such as when using MF `@angular/core` can be located in a bundles others than `main` and `vendor`.
@alan-agius4 alan-agius4 requested a review from clydin December 9, 2022 08:11
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Dec 9, 2022
@alan-agius4 alan-agius4 marked this pull request as ready for review December 9, 2022 08:11
@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 Dec 9, 2022
@dgp1130 dgp1130 merged commit afe9fea into angular:main Dec 9, 2022
@alan-agius4 alan-agius4 deleted the inlining-locale branch December 9, 2022 22:06
@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 Jan 9, 2023
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 target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants