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

+3 -2
View File
@@ -6,6 +6,7 @@ import RunbookText from "./RunbookText";
import TimeAgo from "./TimeAgo";
import { readableError } from "../utils/errors";
import { toast } from "../utils/toast";
import { t } from "../i18n";
/**
* Free-form notes about a server or a network device — what it is, where it sits, what was done to it last time. One text, written with the same small formatting
@@ -57,7 +58,7 @@ export default function NotesCard({ targetType, targetId, canEdit, bare = false
{busy ? "Saving…" : "Save"}
</button>
<button type="button" className="btn" disabled={busy} onClick={() => setDraft(null)}>
Cancel
{t("Cancel")}
</button>
</div>
</>
@@ -94,7 +95,7 @@ export default function NotesCard({ targetType, targetId, canEdit, bare = false
return (
<div className="card mb-3">
<div className="card-header">
<h3 className="card-title">Notes</h3>
<h3 className="card-title">{t("Notes")}</h3>
{edit && <div className="card-actions">{edit}</div>}
</div>
<div className="card-body">