Skip to content

Commit

Permalink
feat: upgrade cldr to v45 (#4620)
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho authored Oct 21, 2024
1 parent a7dd645 commit fbb2bbf
Show file tree
Hide file tree
Showing 85 changed files with 14,165 additions and 33,558 deletions.
1 change: 0 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ common --bes_upload_mode=fully_async
# Be aware that this will still create a bazel-out symlink in
# your project directory, which you must exclude from version control and your
# editor's search path.
build --symlink_prefix=dist/
# To disable the symlinks altogether (including bazel-out) you can use
# build --symlink_prefix=/
# however this makes it harder to find outputs.
Expand Down
17 changes: 17 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,23 @@ multirun(
],
)

multirun(
name = "cldr-gen",
testonly = True,
commands = [
"//packages/intl-segmenter:generate-cldr-segmentation-rules",
"//packages/icu-messageformat-parser:time-data",
"//packages/intl-durationformat:time-separators",
"//packages/intl-enumerator:currencies",
"//packages/intl-getcanonicallocales:likelySubtags",
"//packages/intl-locale:character-orders",
"//packages/intl-locale:hour-cycles",
"//packages/intl-locale:numbering-systems",
"//packages/intl-locale:timezones",
"//packages/utils:default-currency",
],
)

CONFIG_FILES = [
"jest.config.js",
"package.json",
Expand Down
56 changes: 56 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,59 @@ http_archive(
type = "tar.gz",
urls = ["https://github.com/tc39/test262/tarball/%s" % TEST262_COMMIT],
)

http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")

http_file(
name = "DerivedCombiningClass",
sha256 = "52064d588c98c623b2373905e6a449eb520f900113954bcd212e94ef0810b471",
url = "https://www.unicode.org/Public/16.0.0/ucd/extracted/DerivedCombiningClass.txt",
)

http_file(
name = "DerivedEastAsianWidth",
sha256 = "372e34de237e5a644ce8379a0d02b91a1f584f04d4fb240ea6ccc87c5767f926",
url = "https://www.unicode.org/Public/16.0.0/ucd/extracted/DerivedEastAsianWidth.txt",
)

http_file(
name = "GraphemeBreakProperty",
sha256 = "c29360bd6f7132811d701d29069541e827eb44bfc4c8fbde8c370d6982689dc1",
url = "https://www.unicode.org/Public/16.0.0/ucd/auxiliary/GraphemeBreakProperty.txt",
)

http_file(
name = "GraphemeBreakTest",
sha256 = "ee2b9354d270ac061b29f09662cafea06341d77e704b8cc6bd72aaeeda363cb5",
url = "https://www.unicode.org/Public/16.0.0/ucd/auxiliary/GraphemeBreakTest.txt",
)

http_file(
name = "IndicSyllabicCategory",
sha256 = "615f1b92ba7ec76e18c5b5c05d2e1836e4b98bc791eb9e27946c7621fc047ae7",
url = "https://www.unicode.org/Public/16.0.0/ucd/IndicSyllabicCategory.txt",
)

http_file(
name = "SentenceBreakProperty",
sha256 = "20aab5eca3842c7a27cc6756d74488a4a5f744c8dca2948ec1128f26a60d1f79",
url = "https://www.unicode.org/Public/16.0.0/ucd/auxiliary/SentenceBreakProperty.txt",
)

http_file(
name = "SentenceBreakTest",
sha256 = "0aef84034ee1789eb71021454fac384e83080b05922272d63cf297f4bf08150e",
url = "https://www.unicode.org/Public/16.0.0/ucd/auxiliary/SentenceBreakTest.txt",
)

http_file(
name = "WordBreakProperty",
sha256 = "476464e71a4b7b779b8ba7c5671f4338fea77da8e6b6b05fb82b3fdd14603779",
url = "https://www.unicode.org/Public/16.0.0/ucd/auxiliary/WordBreakProperty.txt",
)

http_file(
name = "WordBreakTest",
sha256 = "ad985d5721f3fa6b45495663dfe44180f2f68976100dee0ea7451ef1a8f838e8",
url = "https://www.unicode.org/Public/16.0.0/ucd/auxiliary/WordBreakTest.txt",
)
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@babel/types": "^7.25.8",
"@bazel/bazelisk": "^1.22.0",
"@bazel/ibazel": "~0.25.0",
"@bazel/runfiles": "^6.3.1",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-angular": "^19.5.0",
"@glimmer/env": "^0.1.7",
Expand Down Expand Up @@ -82,14 +83,14 @@
"chalk": "^4.1.2",
"chokidar": "^4.0.1",
"cjs-module-lexer": "^1.4.1",
"cldr-bcp47": "43.1.0",
"cldr-core": "43.1.0",
"cldr-dates-full": "43.1.0",
"cldr-localenames-full": "43.1.0",
"cldr-misc-full": "43.1.0",
"cldr-numbers-full": "43.1.0",
"cldr-segments-full": "43.1.0",
"cldr-units-full": "43.1.0",
"cldr-bcp47": "^45.0.0",
"cldr-core": "^45.0.0",
"cldr-dates-full": "^45.0.0",
"cldr-localenames-full": "^45.0.0",
"cldr-misc-full": "^45.0.0",
"cldr-numbers-full": "^45.0.0",
"cldr-segments-full": "^45.0.0",
"cldr-units-full": "^45.0.0",
"clsx": "^2.1.1",
"commander": "^8.3.0",
"content-tag": "^2.0.2",
Expand Down Expand Up @@ -124,7 +125,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"regenerate": "^1.4.2",
"regexpu-core": "^5.3.2",
"regexpu-core": "^6.1.1",
"serialize-javascript": "^6.0.2",
"test262-harness": "^10.0.0",
"ts-jest": "^29.2.5",
Expand Down
52 changes: 20 additions & 32 deletions packages/icu-messageformat-parser/time-data.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ export const timeData: Record<string, string[]> = {
"H",
"h"
],
"419": [
"h",
"H",
"hB",
"hb"
],
"AC": [
"H",
"h",
Expand Down Expand Up @@ -53,8 +59,8 @@ export const timeData: Record<string, string[]> = {
"hB"
],
"AR": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand Down Expand Up @@ -144,9 +150,9 @@ export const timeData: Record<string, string[]> = {
"H"
],
"BO": [
"h",
"H",
"hB",
"h",
"hb"
],
"BQ": [
Expand Down Expand Up @@ -223,8 +229,8 @@ export const timeData: Record<string, string[]> = {
"hB"
],
"CL": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand All @@ -249,14 +255,14 @@ export const timeData: Record<string, string[]> = {
"H"
],
"CR": [
"H",
"h",
"H",
"hB",
"hb"
],
"CU": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand Down Expand Up @@ -325,9 +331,9 @@ export const timeData: Record<string, string[]> = {
"hb"
],
"EC": [
"h",
"H",
"hB",
"h",
"hb"
],
"EE": [
Expand Down Expand Up @@ -463,8 +469,8 @@ export const timeData: Record<string, string[]> = {
"hB"
],
"GT": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand All @@ -491,8 +497,8 @@ export const timeData: Record<string, string[]> = {
"H"
],
"HN": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand Down Expand Up @@ -806,8 +812,8 @@ export const timeData: Record<string, string[]> = {
"hB"
],
"MX": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand Down Expand Up @@ -847,8 +853,8 @@ export const timeData: Record<string, string[]> = {
"hB"
],
"NI": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand Down Expand Up @@ -896,9 +902,9 @@ export const timeData: Record<string, string[]> = {
"hb"
],
"PE": [
"h",
"H",
"hB",
"h",
"hb"
],
"PF": [
Expand Down Expand Up @@ -956,8 +962,8 @@ export const timeData: Record<string, string[]> = {
"H"
],
"PY": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand Down Expand Up @@ -1070,8 +1076,8 @@ export const timeData: Record<string, string[]> = {
"hB"
],
"SV": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand Down Expand Up @@ -1193,8 +1199,8 @@ export const timeData: Record<string, string[]> = {
"hB"
],
"UY": [
"H",
"h",
"H",
"hB",
"hb"
],
Expand Down Expand Up @@ -1302,24 +1308,12 @@ export const timeData: Record<string, string[]> = {
"H",
"hB"
],
"es-BO": [
"H",
"h",
"hB",
"hb"
],
"es-BR": [
"H",
"h",
"hB",
"hb"
],
"es-EC": [
"H",
"h",
"hB",
"hb"
],
"es-ES": [
"H",
"h",
Expand All @@ -1332,12 +1326,6 @@ export const timeData: Record<string, string[]> = {
"hB",
"hb"
],
"es-PE": [
"H",
"h",
"hB",
"hb"
],
"fr-CA": [
"H",
"h",
Expand Down
Loading

0 comments on commit fbb2bbf

Please sign in to comment.