Skip to content

Commit dda80e9

Browse files
authored
fix: upgrade CLI to 0.1.11 (#34)
1 parent 266a3a0 commit dda80e9

File tree

8 files changed

+830
-5302
lines changed

8 files changed

+830
-5302
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ bazel_dep(name = "rules_shell", version = "0.3.0", dev_dependency = True)
4444

4545
# FormatJS CLI toolchain
4646
formatjs_cli = use_extension("//formatjs_cli:extensions.bzl", "formatjs_cli")
47-
formatjs_cli.toolchain(version = "0.1.9")
47+
formatjs_cli.toolchain(version = "0.1.11")
4848
use_repo(
4949
formatjs_cli,
5050
"formatjs_cli_toolchains",

MODULE.bazel.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/aggregate/MODULE.bazel.lock

Lines changed: 293 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/custom_version/MODULE.bazel.lock

Lines changed: 234 additions & 2609 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/simple/MODULE.bazel.lock

Lines changed: 267 additions & 2636 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formatjs_cli/repositories.bzl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
"""Repository rules for FormatJS CLI toolchains."""
22

3-
DEFAULT_VERSION = "0.1.9"
3+
DEFAULT_VERSION = "0.1.11"
44

55
FORMATJS_CLI_VERSIONS = {
6+
"0.1.11": {
7+
"darwin-arm64": {
8+
"url": "https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v0.1.11/formatjs_cli-darwin-arm64",
9+
"sha256": "95bb32829c366b158290515f8639789347e163d0a9eb6bf73668a2d273b5f348",
10+
},
11+
"linux-x64": {
12+
"url": "https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v0.1.11/formatjs_cli-linux-x64",
13+
"sha256": "9361021a9f23a810737d41f809de7379f350c98411b4337ad562a17a3f3533bb",
14+
},
15+
},
616
"0.1.9": {
717
"darwin-arm64": {
818
"url": "https://github.com/formatjs/formatjs/releases/download/formatjs_cli_v0.1.9/formatjs_cli-darwin-arm64",

tests/arguments/BUILD.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ formatjs_extract(
3232
id_interpolation_pattern = "[sha512:contenthash:base64:6]",
3333
)
3434

35+
# Test extraction with crowdin format
36+
formatjs_extract(
37+
name = "messages_crowdin",
38+
srcs = ["test.tsx"],
39+
format = "crowdin",
40+
id_interpolation_pattern = "[sha512:contenthash:base64:6]",
41+
)
42+
3543
# Test extraction with empty file list - should succeed with empty output
3644
formatjs_extract(
3745
name = "messages_empty_list",
@@ -84,6 +92,7 @@ write_source_files(
8492
files = {
8593
"fixtures/messages_default.json": ":messages_default",
8694
"fixtures/messages_merge.json": ":messages_merge",
95+
"fixtures/messages_crowdin.json": ":messages_crowdin",
8796
"fixtures/compiled_ast.json": ":compiled_ast",
8897
"fixtures/compiled_multiple.json": ":compiled_multiple",
8998
},
@@ -96,6 +105,7 @@ write_source_files(
96105
files = {
97106
"fixtures/messages_default.json": ":messages_default",
98107
"fixtures/messages_merge.json": ":messages_merge",
108+
"fixtures/messages_crowdin.json": ":messages_crowdin",
99109
"fixtures/compiled_ast.json": ":compiled_ast",
100110
"fixtures/compiled_multiple.json": ":compiled_multiple",
101111
},
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"test.message": {
3+
"message": "This is a test message",
4+
"description": "A simple test message"
5+
},
6+
"test.whitespace": {
7+
"message": "This has multiple spaces",
8+
"description": "Testing whitespace preservation"
9+
}
10+
}

0 commit comments

Comments
 (0)