Skip to main content
hl status and hl check skip node_modules, .git, and build output when they expand ** globs, so broad patterns run several times faster in large repos. hl run saves its lockfile atomically, and slow target writes no longer stall translation workers. hl extract now picks up react-intl v12 intl.$t(...) calls and typed <FormattedMessage<...>> JSX. View the GitHub release · Full changelog

Breaking changes

  • ** globs skip node_modules, .git, .next, dist, build, and coverage (#3344). A broad pattern like src/**/*.json no longer matches files under src/build/ or src/dist/. To include one of those folders, name it as a literal segment in the pattern, for example dist/**/en.json or **/build/en.json. This affects check, status, pack, sync, and run.

Features

  • Extract react-intl v12 $t calls in hl extract. intl.$t({ id, defaultMessage }) is treated like formatMessage. Typed JSX such as <FormattedMessage<{ who: string }> id="..." /> is also extracted; both were skipped silently before. See extract.

Fixes

  • Save the lockfile atomically during hl run. Saves write a temp file and rename it into place, so a Ctrl+C mid-save can no longer truncate the lockfile that resume depends on. See run.
  • Stop treating the > of an arrow function type (() => void) as the end of a TypeScript type argument list in hl extract (#3498).
  • The update notice no longer blocks commands (#3344). The GitHub lookup starts with the command and is cached for 24 hours, including failed lookups, so offline machines don’t retry on every run. If a lookup is still running when the command ends, the CLI waits at most 300 ms. The notice is skipped when CI is set or stderr isn’t a terminal, and prints as one line: hl update available: 1.14.0 → 1.15.0, run hl update.

Performance

  • Skip dependency and build folders in ** globs. Measured in a web app with 8.2 GB of node_modules: status with **/lang/en-US.json 1.46 s → 0.17 s; check with the same pattern 1.55 s → 0.33 s; status on the real config 0.27 s → 0.15 s. Output is byte-for-byte the same as v1.14.0 on the configs tested.
  • Run hl status source files in parallel, sharing check’s per-run file cache, so each file is read and parsed once instead of once per locale. The CSV is sorted from one list and streamed; when a namespace/key/locale appears twice, the last entry still wins. See status.
  • Write hl run target files in the background. Target writes, and markdown parity retries that call the model, used to run on the lockfile writer and stall every worker. They now run at least 4 at once; a failed write rolls back only its own lockfile entries. Parity retries now count against the run’s translation limit. Mid-run lockfile saves write compact JSON in batches of 256; the final save still writes the indented file you commit. Benchmarks: 64 files at 0.5 ms per write 41.7 ms → 10.3 ms; a full 2k-key run 104 ms / 33.6 MB written → 86 ms / 23.7 MB.

Tests

  • Glob skipping, including folders the pattern names.
  • Update-check cache (fresh, stale, failed lookup), slow-lookup cutoff, and CI/terminal gate.
  • status CSV keeps the last duplicate entry.
  • Each target is written once with 1, 3, and 16 workers; a failed write rolls back only its target; cancel waits for in-flight writes; lockfile atomicity and compact vs indented round-trip.
  • react-intl $t calls, typed FormattedMessage JSX, and arrow function types inside type arguments.
  • New make test-cli-race target; make test and CI now run the CLI under the race detector.

Maintenance

  • Bump Go dependencies, including bubbletea to v2.2.0, bubbles to v2.2.2, lipgloss to v2.1.1, OpenAI Go to v3.108.0, Phrase Go to v4.41.0, AWS SDK for Go v2 (aws-sdk-go-v2 to v1.48.1, config to v1.33.22, S3 to v1.116.1), go-pdfium to v1.21.5, and golang.org/x/net to v0.63.0 (#3363, #3378, #3405, #3434, #3453, #3486).
  • Bump the google.golang.org/genproto replace to v0.0.0-20261123191846-1e707ab9fbc2 (#3397, #3489).