Skip to content

Conversation

JeanMeche
Copy link
Member

@JeanMeche JeanMeche commented Apr 10, 2024

@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Apr 10, 2024
@JeanMeche JeanMeche force-pushed the poc-intl-date branch 2 times, most recently from 6c939c3 to 0ceb875 Compare April 10, 2024 15:02
@angular-robot angular-robot bot added the detected: deprecation PR contains a commit with a deprecation label Apr 10, 2024
@JeanMeche JeanMeche changed the title feat(common): Add support for i18N using the Intl API feat(common): Add and enable the Intl implementation for the i18n sub-system. Apr 10, 2024
@JeanMeche JeanMeche changed the title feat(common): Add and enable the Intl implementation for the i18n sub-system. feat(common): Add and enable the Intl implementation for the i18n sub-system. Apr 10, 2024
@JeanMeche JeanMeche added feature Issue that requests a new feature breaking changes area: i18n Issues related to localization and internationalization and removed detected: feature PR contains a feature commit labels Apr 11, 2024
@ngbot ngbot bot added this to the Backlog milestone Apr 11, 2024
@JeanMeche JeanMeche added the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 11, 2024
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Apr 11, 2024
@alxhub alxhub self-assigned this Apr 11, 2024
@angular-robot angular-robot bot added the detected: breaking change PR contains a commit with a breaking change label Apr 12, 2024
@JeanMeche JeanMeche force-pushed the poc-intl-date branch 2 times, most recently from 767753e to 1ca64d6 Compare April 12, 2024 10:27
@JeanMeche JeanMeche marked this pull request as ready for review April 12, 2024 10:42
@pullapprove pullapprove bot requested review from AndrewKushnir and atscott April 12, 2024 10:42
@angular-robot angular-robot bot removed the detected: breaking change PR contains a commit with a breaking change label Apr 18, 2024
@angular-robot angular-robot bot added the area: common Issues related to APIs in the @angular/common package label Jul 30, 2024
@JeanMeche JeanMeche force-pushed the poc-intl-date branch 2 times, most recently from 2e46efe to 8b33b29 Compare September 7, 2024 21:47
@pullapprove pullapprove bot removed the request for review from atscott October 17, 2024 16:55
@alxhub alxhub removed this from the v19 Feature Freeze Candidates milestone Oct 21, 2024
@ngbot ngbot bot added this to the Backlog milestone Oct 21, 2024
@JeanMeche JeanMeche modified the milestones: Backlog, v20 candidates Feb 11, 2025
@JeanMeche JeanMeche removed this from the v20 candidates milestone Apr 24, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 24, 2025
@csvn
Copy link
Contributor

csvn commented May 16, 2025

I hope I'm not being a nuisance, but what is the status for this PR? I see it was removed from v20 milestone recently, and the last thing mentioned was in #57916:

I hope that we can ship it with v19, mid November.

  • Since using Intl is opt-in, can't this land in a minor version?
  • I looked through tests and code a bit, is there any work left for this to be "done"?

I've been considering replacing @angular/common in our application with pipes/helpers based on Intl so we can format based on the users current locale instead, which is a lot messier when registerLocaleData() is required to use. I thought we'd wait perhaps for this PR to land though, to avoid building something custom if it will be supported in Angular. 😅

@PowerKiKi
Copy link
Contributor

I was sure this PR was merged and released already. So I was rather confused when I tried to use intl implementation, but couldn't find anything about it in current Angular source code.

I too would appreciate using this new, lighter, way to do format things. Anything we can do to help move it forward ?

…nd currencies

This commit adds an `Intl` implementation to format numbers, percents and currencies.
The implementation is based on the `Intl` API and allows to drop the static imports for the locale date files.

fixes angular#33803
With this commit, plurals formatting does not depend on the CLDR locale data anymore.
With this commit, the Intl implementation because the default one and doesn't require the CLDR locale data imports anymore.

Opt-out is possible by invoking `useLegacyDateFormatting()` ahead of bootstrap.

BREAKING CHANGE: Some custom date format aren't supported any more (`cccccc`, `EEEEEE`, `aaaaa`, `b` to `bbbbb` and `B` to `BBBBB`)
The `DatePipe` will not support offset timezone anymore, use IANA timezones instead .
@JeanMeche JeanMeche marked this pull request as draft June 14, 2025 00:35
@mauriziocescon
Copy link

I wonder: any hope for v21 or no way?

@JeanMeche JeanMeche closed this Aug 29, 2025
@JeanMeche JeanMeche deleted the poc-intl-date branch August 29, 2025 00:44
@JeanMeche JeanMeche restored the poc-intl-date branch August 29, 2025 00:44
@JeanMeche JeanMeche reopened this Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: review The PR is still awaiting reviews from at least one requested reviewer area: common Issues related to APIs in the @angular/common package area: i18n Issues related to localization and internationalization detected: breaking change PR contains a commit with a breaking change detected: feature PR contains a feature commit feature Issue that requests a new feature target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use platform Intl APIs in Angular's i18n subsystem
8 participants