Repository navigation
fix(i18n): translate generated incident, status-page and validation text - #913
Merged
Merged
Conversation
…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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is 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
🚀 New features to boost your workflow:
|
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]>
Merged
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
ConfigErrormessage was rendered verbatim, and a refused save showed the English title "Configuration validation failed".How each is handled
Generated text: store the recipe, not just the sentence
Each generated column gets a sibling JSON column holding
{key, params}. Migration038_v0_52_0, both engines:incidents.title_i18nincident_publications.public_title_i18nstatus_updates.title_i18nandstatus_updates.body_i18ndash0 and status0 render the recipe in the reader's language through
localizeGenerated(). The keys live inincidents.json›generated(dash0) andstatus.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.paramsis a closed, typed struct (models.LocalizedParams), not a map. The public-payload guard (TestPublicStatusPagePayloadCarriesNoIncidentDetails) still rejects free-form maps on the status page.70,0 %).TestPublicTemplatesMatchFrontendLocalespins the status0 and dash0 copies of the publication templates to the Go templates, in all four languages.TestTitleKeysExistInDashboardLocalespins the incident-title keys.LocalizedText, exposed astitleI18n/bodyI18non Incident, IncidentPublication, PublicIncident(+Update), StatusUpdate(+Public) and PublicationUpdate.Validation errors: a rule code
checkerdef.NewRequiredConfigError(param)replaces the 48NewConfigError(x, "is required")call sites.rule: "required"field onValidationErrorField(/checks/validate, and the 422 on create, update and clone).codestaysINVALID_CONFIGandmessagestays the same, so API clients are unaffected.checks:validation.fieldRequired("Dieses Feld ist erforderlich", « Ce champ est obligatoire »). Unknown rules keep the server message.Hardcoded strings (dash0, status0)
down/timeout/error).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)
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.ApiError.message, which is the server's Englishtitle. This PR translates the fallbacks, the validation rule, and the unlock codes. A code-to-message table inapi/client.tswould be the next step.connection refused: …, the incident'sfailure_reason, resultoutputkey/values) are still shown raw. A language-neutralNetworkFailurecode exists incheckerdef/netfailure.go, but dash0 does not read it yet.status0/src/embed/widget.ts), stored names such as the "No escalation" policy and "Slack DM (workspace)" contacts, and sample placeholders."… is required"style messages that are not the bare"is required"(e.g. "password or private_key is required") still show the server text.pkg/client/client_generated.gois not regenerated (it is committed per batch/release). CI regenerates and builds it, and that was checked locally.Tests
/checks/validatereportsrule: requiredfor a VNC check without host.localizeGenerated(German title, French number formatting, unnamed group) andlocalizeFieldError. The full vitest suite,tsc -band the locale tests pass.localizeGeneratedunit tests,bun test ./src,tsc -bandeslint --max-warnings 0pass.🤖 Generated with Claude Code