angular-cn/packages
Olivier Combe 5e0f982961 feat(ivy): use i18n locale data to determine the plural form of ICU expressions (#29249)
Plural ICU expressions depend on the locale (different languages have different plural forms). Until now the locale was hard coded as `en-US`.
For compatibility reasons, if you use ivy with AOT and bootstrap your app with `bootstrapModule` then the `LOCALE_ID` token will be set automatically for ivy, which is then used to get the correct plural form.
If you use JIT, you need to define the `LOCALE_ID` provider on the module that you bootstrap.
For `TestBed` you can use either `configureTestingModule` or `overrideProvider` to define that provider.
If you don't use the compat mode and start your app with `renderComponent` you need to call `ɵsetLocaleId` manually to define the `LOCALE_ID` before bootstrap. We expect this to change once we start adding the new i18n APIs, so don't rely on this function (there's a reason why it's a private export).
PR Close #29249
2019-05-30 15:09:02 -04:00
..
animations refactor: remove toplevel property accesses (#29329) 2019-05-16 12:08:49 -07:00
bazel fix(bazel): allow ts_library interop with list-typed inputs (#30600) 2019-05-22 16:22:10 -07:00
benchpress
common feat(ivy): use i18n locale data to determine the plural form of ICU expressions (#29249) 2019-05-30 15:09:02 -04:00
compiler docs(ivy): fix symbol in example AST (#30745) 2019-05-30 13:41:52 -04:00
compiler-cli feat(ivy): use i18n locale data to determine the plural form of ICU expressions (#29249) 2019-05-30 15:09:02 -04:00
core feat(ivy): use i18n locale data to determine the plural form of ICU expressions (#29249) 2019-05-30 15:09:02 -04:00
docs
elements refactor: remove toplevel property accesses (#29329) 2019-05-16 12:08:49 -07:00
examples test(compiler): update examples and compiler tests (#30626) 2019-05-23 10:31:32 -07:00
forms refactor: remove toplevel property accesses (#29329) 2019-05-16 12:08:49 -07:00
http refactor: remove toplevel property accesses (#29329) 2019-05-16 12:08:49 -07:00
language-service test: improve language service tests performance (#30585) 2019-05-24 18:17:21 -04:00
platform-browser fix(core): require 'static' flag on queries in typings (#30639) 2019-05-24 16:55:00 -04:00
platform-browser-dynamic test(platform-browser-dynamic): avoid swallowing error in `CachedResourceLoader` test (#30515) 2019-05-16 20:14:04 -07:00
platform-server
platform-webworker feat(platform-webworker): deprecate platform-webworker (#30642) 2019-05-23 15:09:48 -07:00
platform-webworker-dynamic feat(platform-webworker): deprecate platform-webworker (#30642) 2019-05-23 15:09:48 -07:00
private/testing
router fix(core): require 'static' flag on queries in typings (#30639) 2019-05-24 16:55:00 -04:00
service-worker
upgrade
BUILD.bazel
README.md
empty.ts
goog.d.ts
license-banner.txt
system.d.ts
tsconfig-build.json
tsconfig-test.json
tsconfig.json
types.d.ts

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT