Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(common): Add and enable the Intl implementation for the i18n sub…
…-system. Angular's i18n subsystem is responsible for providing localised formatting of numbers, percents, percentages and dates. This feature replaces the default implementation of the i18N subsystem. The new implementation relies on the platform-provided [`Intl` API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl). With the formatting now relying on a platform API, it is not necessary anymore the load locale files (See #20487) . * For numbers, percents and currencies, the `Intl` implementation replaces the exisiting one. * For dates, the feature is being introduced as an **opt-out** : `useLegacyDateFormatting()`, new application will rely on the Intl implementation by default. * Existing applications will be migrated to opt-out of this change and rely on the previously existing implementation. BREAKING CHANGE: Formatting output might be altered for dates. * Expect changes for formats `cccccc`, `EEEEEE`, `aaaaa`, `b` to `bbbbb` and `B` to `BBBBB`. Extensive details are available in the changes of `format_date_spec.ts`. * The `DatePipe` will not support offset `timezone` anymore, use IANA timezones instead .
- Loading branch information