
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
51 lines
1.3 KiB
Python
51 lines
1.3 KiB
Python
package(default_visibility = ["//visibility:private"])
|
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
|
|
|
ts_library(
|
|
name = "acceptance_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
),
|
|
deps = [
|
|
"//packages/animations",
|
|
"//packages/animations/browser",
|
|
"//packages/animations/browser/testing",
|
|
"//packages/common",
|
|
"//packages/common/locales",
|
|
"//packages/compiler",
|
|
"//packages/compiler/testing",
|
|
"//packages/core",
|
|
"//packages/core/src/util",
|
|
"//packages/core/testing",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-browser-dynamic",
|
|
"//packages/platform-browser/animations",
|
|
"//packages/platform-browser/testing",
|
|
"//packages/platform-server",
|
|
"//packages/private/testing",
|
|
"@npm//rxjs",
|
|
"@npm//zone.js",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "acceptance",
|
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
|
deps = [
|
|
":acceptance_lib",
|
|
"//tools/testing:node",
|
|
"@npm//base64-js",
|
|
"@npm//source-map",
|
|
"@npm//zone.js",
|
|
],
|
|
)
|
|
|
|
ts_web_test_suite(
|
|
name = "acceptance_web",
|
|
deps = [
|
|
":acceptance_lib",
|
|
],
|
|
)
|