angular-cn/packages/common/test
Olivier Combe 6a8cca7975 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-04-15 10:40:26 -07:00
..
directives fix(ivy): ViewContainerRef.destroy should properly clean the DOM (#29414) 2019-03-22 13:13:12 -07:00
i18n feat(ivy): use i18n locale data to determine the plural form of ICU expressions (#29249) 2019-04-15 10:40:26 -07:00
location test(ivy): run common tests with ivy on ci (#27071) 2018-11-13 10:59:55 -08:00
pipes fix(common): KeyValuePipe should return empty array for empty objects (#27258) 2018-12-14 15:19:13 -08:00
BUILD.bazel build(bazel): run a number of web tests with karma_web_test in saucelabs in CircleCI (#27721) 2019-02-22 13:07:08 -08:00
common_module_spec.ts test(ivy): run common tests with ivy on ci (#27071) 2018-11-13 10:59:55 -08:00
cookie_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
spies.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
viewport_scroller_spec.ts fix(common): escape query selector used when anchor scrolling (#29577) 2019-03-29 10:39:38 -07:00