mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The recent update to CLDR 41 highlighted (internally) that some time formats have changed to rely on locale-specific day periods. In particular the `zh_TW` (or canonical: `zh_Hant`) has changed some time formats/patterns from the universal `AM/PM` symbols (`a`) to `B`. The `b`/`B` symbols rely on locale-specific day period rules. This data is only extracted from CLDR into the so-called extra locale data that Angular provides. To fix this, and to be able to reverse the internal workaround that doesn't allow us to use the actual CLDR 41 data here, we always provide the locale extra data when conditonally loading CLDR data based on `goog.LOCALE`. This will result in additional payload cost that locale-specific JS bundles have to pay, but the only alternative would be to break Angular's `b`/`B` symbol support in favor of falling back to `AM/PM` rules (similar to how Closure Libray itself does it). For our external users (something I want to note here), they will be able to load the extra data easily (like it was possible before). Angular has some good erroring if the extra data is required. Most of our users will always use the global locale files anyway (the Angular CLI always uses them). These come with the extra data by default. Resources: - |
||
|---|---|---|
| .. | ||
| http | ||
| locales | ||
| src | ||
| test | ||
| testing | ||
| upgrade | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||