angular-docs-cn/packages/common/locales
Paul Gschwendtner 3b2f607cda build: generate closure locale files using hard-coded list of locales (#42230)
With the refactoring from a Gulp task to a Bazel too, we tried switching
away from the hard-coded list of locales and aliases for the Closure
Locale file generation. After multiple attempts of landing this, it
turned out that Closure Compiler/Closure Library relies on locale
identifiers CLDR does not capture within it's `availableLocales.json`
or `aliases.json` data.

Closure Library does not use any unknown locale identifiers here. The
locale identifiers can be resolved within CLDR using the bundle lookup
algorithm that is specified as part of CLDR; instead the problem is that
the locale identifiers do not follow any reasonable pattern and
therefore it's extremely difficult to generate them automatically (it's
almost like we'd need to build up _all_ possible combinations). Instead
of doing that, we just use the hard-coded locales and aliases from the
old Closure Locale generation script.

PR Close #42230
2021-07-16 12:44:59 -07:00
..
extra build: wire up new CLDR generation tool within Bazel (#42230) 2021-07-16 12:44:59 -07:00
generate-locales-tool build: generate closure locale files using hard-coded list of locales (#42230) 2021-07-16 12:44:59 -07:00
global build: wire up new CLDR generation tool within Bazel (#42230) 2021-07-16 12:44:59 -07:00
BUILD.bazel build: wire up new CLDR generation tool within Bazel (#42230) 2021-07-16 12:44:59 -07:00
closure-locale.ts build: generate closure locale files using hard-coded list of locales (#42230) 2021-07-16 12:44:59 -07:00
ff-CM.ts build: wire up new CLDR generation tool within Bazel (#42230) 2021-07-16 12:44:59 -07:00
ff-GN.ts build: wire up new CLDR generation tool within Bazel (#42230) 2021-07-16 12:44:59 -07:00
ff-MR.ts build: wire up new CLDR generation tool within Bazel (#42230) 2021-07-16 12:44:59 -07:00
index.bzl build: wire up new CLDR generation tool within Bazel (#42230) 2021-07-16 12:44:59 -07:00
package.json build(common): mark locales files as side-effect-full (#23509) 2018-04-24 11:14:52 -07:00