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
@@ -4,6 +4,7 @@ import RangeSelect from "./RangeSelect";
import TimeChart from "./TimeChart";
import { BlockSkeleton } from "./Skeleton";
import { useChartRange } from "../utils/chartRanges";
import { t } from "../i18n";
const DAY_MS = 24 * 3600_000;
/** A day of uptime is drawn green when nothing was wrong, amber for some time down, red for most of the day. */
@@ -64,7 +65,7 @@ export default function UptimeHistory({ kind, id, name }: { kind: "servers" | "i
<>
<div className="mb-2">
<span className="h3 me-2">{series.percent}%</span>
<span className="text-secondary">up over the last {days} days</span>
<span className="text-secondary">{t("up over the last {days} days", { days })}</span>
</div>
<TimeChart series={lines} from={to - days * DAY_MS} to={to} bars barColor={dayColor} label={`${name}: share of each day it was up, over the last ${days} days. ${series.percent}% in all.`} />
<div className="text-secondary small mt-2">