Skip to content

perf(dash0): load only the active language's translations - #729

Merged
fclairamb merged 5 commits into
mainfrom
chore/dash0-lazy-locales
Oct 31, 2026
Merged

fclairamb merged 5 commits into
mainfrom
chore/dash0-lazy-locales

Conversation

@fclairamb

@fclairamb fclairamb commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • dash0 lazy locales: English stays in the main bundle; fr, de and es are loaded on demand, one chunk per language. The detected language is awaited before first render (English fallback if the chunk fails or takes more than 2 s), and changeLanguage waits for the chunk. Main chunk: 4,616 kB → 3,790 kB raw (1,289 → 1,037 kB gzipped); each locale chunk is ~280 kB raw / ~90 kB gzipped. V8 compile time was not measured; CSP script-src with lazy chunks was not checked on a production binary (e2e on a built binary loads them fine).
  • Batch gate green: backend build, lint, Go tests, dash0 typecheck/lint:e2e, full Playwright (989 passed, 2 flaky in check-disable-resolve-incidents.spec.ts passed on retry).

Decided by autopilot

  • dash0-lazy-locales, first paint for a non-English visitor: wait for the language chunk (2 s cap, then English) (recommended answer).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fclairamb and others added 4 commits October 31, 2026 10:22
Main chunk 4,616 kB -> 3,790 kB raw (1,289 -> 1,037 kB gzip); each of
fr/de/es is its own ~280 kB chunk. First render waits for the detected
language (capped at 2 s, then English). changeLanguage resolves once the
chunk is loaded and rejects (keeping the current language) if it fails.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@codecov

codecov Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.78%. Comparing base (a78f954) to head (2ce3cb5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #729      +/-   ##
==========================================
+ Coverage   89.77%   89.78%   +0.01%     
==========================================
  Files        1306     1306              
  Lines      132987   132987              
==========================================
+ Hits       119389   119409      +20     
+ Misses      13589    13569      -20     
  Partials        9        9              

see 25 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fclairamb fclairamb changed the title chore(dash0): load only the active language's translations perf(dash0): load only the active language's translations Oct 31, 2026
@fclairamb
fclairamb marked this pull request as ready for review October 31, 2026 09:46
@fclairamb
fclairamb merged commit 406f211 into main Oct 31, 2026
36 checks passed
@fclairamb
fclairamb deleted the chore/dash0-lazy-locales branch October 31, 2026 09:58
fclairamb added a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.43.0](v0.42.1...v0.43.0)
(2026-10-31)


### Features

* auto-create a personal org for new users, resume OAuth after org
creation ([#716](#716))
([2ae5575](2ae5575))


### Bug Fixes

* **auth:** limit sign-ups per client IP (unconfirmed per day, once a
minute) ([#727](#727))
([b2eb48f](b2eb48f))
* **deps:** update github.com/dop251/goja digest to 032d024
([#724](#724))
([025e97a](025e97a))
* **deps:** update go dependencies (non-major)
([#725](#725))
([5796b1f](5796b1f))
* **deps:** update module github.com/prometheus/common to v0.73.1
([#720](#720))
([9bef875](9bef875))
* **deps:** update module github.com/slack-go/slack to v0.33.0
([#722](#722))
([ad19df4](ad19df4))
* **security:** bug-report budget for non-members, retention sparing
crawl reports
([#715](#715))
([d929999](d929999))
* **security:** JS check memory budget, re-authentication for new
sign-in factors
([#728](#728))
([a78f954](a78f954))


### Performance Improvements

* **dash0:** load only the active language's translations
([#729](#729))
([406f211](406f211))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant