Add a Swedish interface with a per-person language switch

A small translation system (the English text is its own key, so anything
without a Swedish entry stays English) and a Language switch in the user menu,
saved on the account (users.language) and following the browser when no choice
has been made. Swedish covers the menu, shared parts (search, tables, dialogs,
relative times), the sign-in page and the everyday pages: Dashboard, Alerts,
Servers, Updates, Maintenance, My work, Coming up, To do, Integrations and the
display settings. Server-written messages stay English for now.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-12 21:49:49 +01:00
1 parent e7f23ba13f
commit 645816d5a8
168 files changed
+12142 -1422

No files matched your search

+2 -1
View File
@@ -14,6 +14,7 @@ import { toast } from "../utils/toast";
import { CATEGORY_NAMES, durationWords, incidentPath, SEVERITY_BADGE } from "../components/IncidentHistory";
import { useBreadcrumbTail } from "../utils/breadcrumb";
import WhatChangedBefore from "../components/WhatChangedBefore";
import { t } from "../i18n";
const KIND_ICON: Record<TimelineKind, JSX.Element> = {
alert: <IconAlertTriangle size={16} />,
@@ -235,7 +236,7 @@ export default function IncidentDetail({ user }: { user: CurrentUser }) {
<div className="col-lg-4">
<div className="card">
<div className="card-header">
<h3 className="card-title">Notes</h3>
<h3 className="card-title">{t("Notes")}</h3>
</div>
<div className="card-body">
{detail.notes.length === 0 && <div className="text-secondary mb-3">Nothing written yet. What was it? What fixed it? What would you do differently?</div>}