mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Add support for hydrating i18n blocks. This is accomplished by serializing information about selected ICU cases for a block during server-side rendering. During hydration, this data is read and is used to traverse both an AST of the translated message and the DOM, in parallel, to map each LView with an RNode. Finally, this mapping is used while nodes are being created (either via i18n or their respective instructions) to locate existing nodes. PR Close #54823
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
|
|
|
circular_dependency_test(
|
|
name = "circular_deps_test",
|
|
entry_point = "angular/packages/platform-server/index.mjs",
|
|
deps = ["//packages/platform-server"],
|
|
)
|
|
|
|
circular_dependency_test(
|
|
name = "testing_circular_deps_test",
|
|
entry_point = "angular/packages/platform-server/testing/index.mjs",
|
|
deps = ["//packages/platform-server/testing"],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/animations",
|
|
"//packages/common",
|
|
"//packages/common/http",
|
|
"//packages/common/http/testing",
|
|
"//packages/common/testing",
|
|
"//packages/compiler",
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/localize",
|
|
"//packages/localize/init",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-server",
|
|
"//packages/private/testing",
|
|
"//packages/router",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|