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
@@ -2,6 +2,7 @@ import { useState, type FormEvent } from "react";
import { api, type NewDnsZoneInput } from "../api/client";
import { ErrorNotice } from "./Notice";
import { readableError } from "../utils/errors";
import { t } from "../i18n";
type Kind = NewDnsZoneInput["type"];
type Protocol = "Udp" | "Tcp" | "Tls" | "Https" | "Quic";
@@ -63,7 +64,7 @@ export default function DnsNewZone({ providerId, providerName, onCreated, onCanc
</div>
<div className="mb-2">
<label className="form-label" htmlFor="newzone-name">
Name
{t("Name")}
</label>
<input id="newzone-name" className="form-control form-control-sm" required autoFocus maxLength={300} autoComplete="off" placeholder="home.lan — or 192.168.1.0/24 for a reverse zone" value={name} onChange={(e) => setName(e.target.value)} />
<div className="text-secondary small mt-1">Written in lower case, ASCII (a name with other letters in its xn-- form), with no dot at the end.</div>
@@ -110,7 +111,7 @@ export default function DnsNewZone({ providerId, providerName, onCreated, onCanc
{busy ? "Making…" : "Make zone"}
</button>
<button type="button" className="btn btn-sm btn-link text-secondary" onClick={onCancel} disabled={busy}>
Cancel
{t("Cancel")}
</button>
</div>
</form>