Skip to content

fix(i18n): translate generated incident, status-page and validation text - #913

Merged
fclairamb merged 6 commits into
mainfrom
fix/i18n-untranslated-gaps
Nov 17, 2026
Merged

fclairamb merged 6 commits into
mainfrom
fix/i18n-untranslated-gaps

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

What was untranslated

German and French users (Spanish too) saw English in several places. The cases came from the German training videos plus a sweep of the codebase:

  1. Auto-published status-page entries. "Database is experiencing issues", "We are investigating…", "… has recovered". They appeared on the status page, the TV board, and the dashboard's publication views. The server already templated them in the page's language, but stored the result as one literal sentence. A page with no language set, or a visitor using the language switcher, got English.
  2. Generated incident titles. "database is down", the degraded titles ("… is degraded: 3 failures in the last 10 probes …") and the SLO burn titles were stored in English and shown as-is in the incident list, the incident detail and the dashboard.
  3. Check-form validation. The VNC form showed "host: is required" while you typed a host. The server's ConfigError message was rendered verbatim, and a refused save showed the English title "Configuration validation failed".
  4. Hardcoded English in dash0/status0, in the places listed under "Hardcoded strings" below.

How each is handled

Generated text: store the recipe, not just the sentence

Each generated column gets a sibling JSON column holding {key, params}. Migration 038_v0_52_0, both engines:

  • incidents.title_i18n
  • incident_publications.public_title_i18n
  • status_updates.title_i18n and status_updates.body_i18n

dash0 and status0 render the recipe in the reader's language through localizeGenerated(). The keys live in incidents.json › generated (dash0) and status.json › publication (status0). The literal column is unchanged. It stays the fallback for an unknown key and the text that mails, feeds, webhooks and older clients carry. Existing rows keep working. Rows without a recipe show their literal text, and the migration backfills "<name> is down" and "Check is down" titles.

  • A person's edit clears the recipe: retitling a publication, or editing a status update's title or body. Their words are then shown as written.
  • params is a closed, typed struct (models.LocalizedParams), not a map. The public-payload guard (TestPublicStatusPagePayloadCarriesNoIncidentDetails) still rejects free-form maps on the status page.
  • Numbers are formatted in the reader's locale (70,0 %).
  • TestPublicTemplatesMatchFrontendLocales pins the status0 and dash0 copies of the publication templates to the Go templates, in all four languages. TestTitleKeysExistInDashboardLocales pins the incident-title keys.
  • New openapi schema LocalizedText, exposed as titleI18n / bodyI18n on Incident, IncidentPublication, PublicIncident(+Update), StatusUpdate(+Public) and PublicationUpdate.

Validation errors: a rule code

  • checkerdef.NewRequiredConfigError(param) replaces the 48 NewConfigError(x, "is required") call sites.
  • The finding carries a new rule: "required" field on ValidationErrorField (/checks/validate, and the 422 on create, update and clone). code stays INVALID_CONFIG and message stays the same, so API clients are unaffected.
  • dash0 maps the rule to checks:validation.fieldRequired ("Dieses Feld ist erforderlich", « Ce champ est obligatoire »). Unknown rules keep the server message.
  • A refused save now lists the invalid fields in the UI language.

Hardcoded strings (dash0, status0)

  • Incident detail: the status-update kind picker and kind badges, and the failure status (down/timeout/error).
  • Check types Crawl, Health and Vendor status page, in the badge, the type filter and the "type docs" menu entry.
  • Not-found views of check, status page, publication and status update.
  • Region picker: the IPv6 badge, and the IPv6 and browser capability tooltips.
  • Channel labels (Email, Phone (SMS), Slack DM, Discord DM, Browser push) and the browser-notification button.
  • Account "Notifications" tab, the passkey fallback label, the notification breadcrumb, the Slack install page and the reorder failure toast.
  • API client fallbacks: network, session expired, rate limit, generic.
  • status0 unlock form: wrong password, too many attempts and not found are mapped by error code instead of showing the server's English title.

Terminology follows the existing catalogs: German "Check" and Sie-form, French « contrôle », Spanish "comprobación". Identical-on-purpose values ("IPv6", de "Check", fr "Notification(s)") are in identical-allowlist.ts.

Out of scope (left for follow-ups)

  • Slack, Discord, Telegram and other chat notifications are English only. No chat channel picks a language. There is no per-org or per-integration language setting, Discord's catalog lookups are forced to i18n.English, and the Slack and Telegram texts are hardcoded. Fixing this needs an org (or integration) language preference first, so nothing was built here. Email already follows the recipient's language.
  • Server error titles in general. About 90 dash0 call sites still show ApiError.message, which is the server's English title. This PR translates the fallbacks, the validation rule, and the unlock codes. A code-to-message table in api/client.ts would be the next step.
  • Checker output and failure reasons (connection refused: …, the incident's failure_reason, result output key/values) are still shown raw. A language-neutral NetworkFailure code exists in checkerdef/netfailure.go, but dash0 does not read it yet.
  • The embed widget's default labels (status0/src/embed/widget.ts), stored names such as the "No escalation" policy and "Slack DM (workspace)" contacts, and sample placeholders.
  • Other "… is required" style messages that are not the bare "is required" (e.g. "password or private_key is required") still show the server text.
  • Unchanged behaviour: an unnamed component reads as the group title in the other templates ("Some services are experiencing issues has recovered"). The clients reproduce the server's substitution, so the wording matches.
  • pkg/client/client_generated.go is not regenerated (it is committed per batch/release). CI regenerates and builds it, and that was checked locally.

Tests

  • Go: recipe round-trip, retitle clearing and backfill on SQLite and Postgres; template/locale parity; title-key parity; degraded recipe follows the title; /checks/validate reports rule: required for a VNC check without host.
  • dash0: localizeGenerated (German title, French number formatting, unnamed group) and localizeFieldError. The full vitest suite, tsc -b and the locale tests pass.
  • status0: localizeGenerated unit tests, bun test ./src, tsc -b and eslint --max-warnings 0 pass.

🤖 Generated with Claude Code

fclairamb and others added 4 commits November 17, 2026 06:49
…er's language

Incident titles ("database is down", degraded and SLO burn titles) and the
auto-published status-page entries ("Database is experiencing issues" and
their updates) were stored as one literal sentence, English or the page
language, so German and French readers saw them untranslated.

Each such column now has a sibling recipe ({key, params}) in a new
*_i18n JSON column (migration 038, both engines). dash0 and status0
render the recipe in the reader's language and fall back to the literal
text, which stays what mails, feeds and webhooks carry. A person's edit
clears the recipe. Existing "<name> is down" titles are backfilled.

The params are a closed, typed struct so the public payload guard still
rejects free-form maps. Go tests pin the template copies in both
frontends to the server's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The check form printed the server's validation message verbatim, so a
German user typing a VNC host saw "host: is required". A missing required
config parameter now carries a rule ("required") on the ConfigError and
on the API's field finding; dash0 shows it as "Dieses Feld ist
erforderlich" (fr, es likewise) and keeps the server message for rules
it does not know. A refused save names the invalid fields in the UI
language instead of the English "Configuration validation failed".

The openapi spec documents the new `rule` field and the LocalizedText
recipes added in the previous commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Strings rendered to French, German and Spanish users in English:

- incident detail: status-update kind picker and badges, failure status
- check types Crawl, Health, Vendor status page in badges, the type
  filter and the docs menu entry
- not-found views of check, status page, publication and status update
- region picker IPv6 badge and IPv6 / browser capability tooltips
- channel labels (Email, Phone (SMS), Slack DM, Discord DM, Browser push)
  and the browser-notification button
- account Notifications tab, passkey fallback label, notification
  breadcrumb, Slack install page, reorder failure toast
- API client fallbacks (network, session expired, rate limit, generic)
- status0 unlock form: wrong password, too many attempts and not found
  are shown by error code in the page language instead of the server's
  English title

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

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.94949% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.73%. Comparing base (55ffc4b) to head (5585269).

Files with missing lines Patch % Lines
server/internal/app/public_incidents.go 0.00% 3 Missing ⚠️
server/internal/handlers/checks/handler.go 33.33% 2 Missing ⚠️
server/internal/handlers/degradedeval/service.go 92.30% 2 Missing ⚠️
server/internal/handlers/statusupdates/service.go 66.66% 2 Missing ⚠️
server/internal/handlers/incidents/service.go 90.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #913   +/-   ##
=======================================
  Coverage   90.72%   90.73%           
=======================================
  Files        1372     1373    +1     
  Lines      141553   141633   +80     
=======================================
+ Hits       128419   128505   +86     
+ Misses      13125    13119    -6     
  Partials        9        9           
Files with missing lines Coverage Δ
server/internal/checkers/checka2s/config/config.go 87.93% <100.00%> (ø)
...er/internal/checkers/checkbrowser/config/config.go 82.85% <100.00%> (ø)
...internal/checkers/checkclickhouse/config/config.go 92.00% <100.00%> (ø)
...rver/internal/checkers/checkcrawl/config/config.go 92.04% <100.00%> (ø)
...rver/internal/checkers/checkdns/config/validate.go 97.36% <100.00%> (ø)
...er/internal/checkers/checkdnsbl/config/validate.go 91.66% <100.00%> (ø)
server/internal/checkers/checkerdef/errors.go 100.00% <100.00%> (ø)
...nternal/checkers/checkfreeboxline/config/config.go 89.28% <100.00%> (ø)
server/internal/checkers/checkftp/config/config.go 90.41% <100.00%> (ø)
...erver/internal/checkers/checkgrpc/config/config.go 94.87% <100.00%> (ø)
... and 51 more

... and 26 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 enabled auto-merge (squash) November 17, 2026 12:34
…ot expire

The fake clock was pinned to 2026-08-19 while ListPublicStatusUpdates filters on the real date minus HistoryDays (90), so TestProbeOutputNeverReachesPublicFields started failing on 2026-11-17, on main too. check_deleted_test had the same date bomb.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb
fclairamb merged commit 92bb05a into main Nov 17, 2026
36 checks passed
@fclairamb
fclairamb deleted the fix/i18n-untranslated-gaps branch November 17, 2026 13:14
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant