Skip to content

feat(dash0): switch the dashboard language with ?lang= on any URL - #926

Merged
fclairamb merged 5 commits into
mainfrom
feat/lang-query-param
Nov 17, 2026
Merged

fclairamb merged 5 commits into
mainfrom
feat/lang-query-param

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Status pages (status0) already read ?lang=; the dashboard only looked at localStorage and the browser. Now ?lang=fr (or en, de, es, regional tags like de-AT included) works on any dashboard URL.

  • Read once at boot, before i18next and the router start (lib/language-query.ts): stored like a pick in the language menu, so it sticks after reload.
  • The parameter is removed from the address bar with replaceState (an unknown value is removed too and ignored), so a later pick in the menu is not undone on reload.
  • Signed in: it counts as an explicit pick. It replaces the user's saved language (the one their emails use) instead of being overridden by it. Impersonation, demo and forced password change sessions switch the UI without saving.
  • Picking another language from the menu afterwards clears the ?lang= pick.

Tests: unit tests (language-query.test.ts, preferences-sync.test.ts) and 2 new Playwright cases in lazy-locales.spec.ts. Ran them locally on a side-car server, together with email-language.spec.ts and login-passkey-i18n.spec.ts: all green.

🤖 Generated with Claude Code

`?lang=fr` (en, de, es) on any dashboard URL now switches the language,
like status pages already did. The pick is stored like a language-menu
choice, the parameter leaves the address bar, and a signed-in user's saved
language (the one their emails use) is updated to it.

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

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #926      +/-   ##
==========================================
- Coverage   90.85%   90.83%   -0.02%     
==========================================
  Files        1381     1381              
  Lines      142752   142752              
==========================================
- Hits       129695   129673      -22     
- Misses      13049    13071      +22     
  Partials        8        8              

see 21 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 merged commit c2640ae into main Nov 17, 2026
36 checks passed
@fclairamb
fclairamb deleted the feat/lang-query-param branch November 17, 2026 21:45
fclairamb added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.52.0](v0.51.0...v0.52.0)
(2026-11-19)


### Features

* **checks:** Pingdom TMS and Chrome Recorder import, named steps and
test runs, richer selectors and basic auth for JS browser checks
([#909](#909))
([1240c57](1240c57))
* **dash0:** switch the dashboard language with ?lang= on any URL
([#926](#926))
([c2640ae](c2640ae))
* **email:** maximum delivery delay, Date-header latency and
missed-probe detection
([#938](#938))
([8489326](8489326))
* **showcase:** cut the published video in any dashboard language
([#932](#932))
([d940da5](d940da5))
* **showcase:** take the dashboard stills in any dashboard language
([#925](#925))
([5104606](5104606))
* status updates in several languages, random first admin password,
Postgres Unix socket
([#939](#939))
([a69424f](a69424f))


### Bug Fixes

* **dash0:** chart dates follow the dashboard language
([#928](#928))
([eae2951](eae2951))
* **deps:** update github.com/dop251/goja digest to 0802ca1
([#920](#920))
([3524928](3524928))
* **deps:** update github.com/dop251/goja digest to 2eded47
([#911](#911))
([a8496d4](a8496d4))
* **deps:** update github.com/dop251/goja digest to 8dfece3
([#935](#935))
([98297e8](98297e8))
* **deps:** update go dependencies (non-major)
([#907](#907))
([41187dc](41187dc))
* **deps:** update go dependencies (non-major)
([#927](#927))
([fcef3fc](fcef3fc))
* **deps:** update go dependencies (non-major)
([#940](#940))
([0fd9228](0fd9228))
* **deps:** update module github.com/a2aproject/a2a-go/v2 to v2.9.0
([#922](#922))
([fe48c84](fe48c84))
* **deps:** update module github.com/posthog/posthog-go to v2
([#924](#924))
([eab03f2](eab03f2))
* **deps:** update module github.com/posthog/posthog-go to v2
([#929](#929))
([545e621](545e621))
* **deps:** update module github.com/posthog/posthog-go to v2
([#930](#930))
([82b03cc](82b03cc))
* **deps:** update module github.com/rabbitmq/amqp091-go to v1.17.0
([#916](#916))
([6974177](6974177))
* **deps:** update module
github.com/standard-webhooks/standard-webhooks/libraries to v1
([#931](#931))
([7b9d073](7b9d073))
* **deps:** update module golang.org/x/net to v0.63.0
([#923](#923))
([7d0fac9](7d0fac9))
* DMARC temperror cause, reaper regions, force-expanded group headers
([#934](#934))
([99f955d](99f955d))
* **i18n:** say "Check" instead of "Prüfung" in German
([#910](#910))
([696dcf8](696dcf8))
* **i18n:** translate generated incident, status-page and validation
text ([#913](#913))
([92bb05a](92bb05a))
* **security:** no paging contacts via impersonation/PAT, shared MCP
probe caps, browser WebSocket egress, analytics key replay
([#946](#946))
([8d51875](8d51875))
* **security:** per-org test-run slots, typed credentials of imported
transaction checks go to secrets
([#933](#933))
([51914b3](51914b3))
* **security:** Telegram bot membership and role checks, admin-only
email suppressions, mask import payload in replay
([#914](#914))
([55ffc4b](55ffc4b))
* Slack events after ack, region badge clicks, WHOIS deadline, legacy
agent warning, empty check groups
([#917](#917))
([65b00e2](65b00e2))

---
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