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

+4 -3
View File
@@ -5,6 +5,7 @@ import { api, type ServerActivityEvent } from "../api/client";
import { formatDateTime } from "../utils/date";
import { formatAgo } from "../utils/duration";
import { BlockSkeleton } from "./Skeleton";
import { t } from "../i18n";
const TONE_CLASS: Record<ServerActivityEvent["tone"], string> = {
good: "text-green",
@@ -42,17 +43,17 @@ export default function ServerActivity({ serverId }: { serverId: number }) {
<h3 className="card-title">Activity</h3>
<div className="card-actions">
<Link to={`/changes?serverId=${serverId}&days=90`} className="small">
Everything about this server in the change log
{t("Everything about this server in the change log")}
</Link>
</div>
</div>
<div className="card-body">
{failed ? (
<div className="text-secondary">Couldn't load the activity.</div>
<div className="text-secondary">{t("Couldn't load the activity.")}</div>
) : events === null ? (
<BlockSkeleton lines={4} />
) : events.length === 0 ? (
<div className="text-secondary">Nothing recorded yet. Changes to this server, times it stopped reporting, and its maintenance windows will be listed here.</div>
<div className="text-secondary">{t("Nothing recorded yet. Changes to this server, times it stopped reporting, and its maintenance windows will be listed here.")}</div>
) : (
<ol className="activity-list">
{events.map((e, i) => (