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

+6 -5
View File
@@ -3,6 +3,7 @@ import { api, type AuthentikGroupDetail, type AuthentikGroupPerson, type Authent
import { ErrorNotice, SuccessNotice } from "./Notice";
import { confirmDialog, promptDialog } from "../utils/dialogs";
import { readableError } from "../utils/errors";
import { t } from "../i18n";
function EditGroup({ g, people, self, busy, onSave, onCancel }: { g: AuthentikGroupDetail; people: AuthentikGroupPerson[]; self: number | null; busy: boolean; onSave: (name: string, add: number[], remove: number[]) => void; onCancel: () => void }) {
const [name, setName] = useState(g.name);
@@ -33,7 +34,7 @@ function EditGroup({ g, people, self, busy, onSave, onCancel }: { g: AuthentikGr
)}
{g.admin && <div className="text-secondary small mb-2">Members of this group are administrators of Authentik. Whether a group is one is changed in Authentik, not here.</div>}
<label className="form-label" htmlFor={`ak-group-name-${g.id}`}>
Name
{t("Name")}
</label>
<input id={`ak-group-name-${g.id}`} className="form-control form-control-sm mb-3" style={{ maxWidth: 360 }} required maxLength={200} autoComplete="off" value={name} onChange={(e) => setName(e.target.value)} />
@@ -66,7 +67,7 @@ function EditGroup({ g, people, self, busy, onSave, onCancel }: { g: AuthentikGr
{busy ? "Saving…" : "Save"}
</button>
<button type="button" className="btn btn-sm btn-link text-secondary" onClick={onCancel} disabled={busy}>
Cancel
{t("Cancel")}
</button>
</div>
</form>
@@ -203,7 +204,7 @@ export default function AuthentikGroupList({ a }: { a: AuthentikInfo }) {
{busy === "new" ? "Making…" : "Make group"}
</button>
<button type="button" className="btn btn-sm btn-link text-secondary" onClick={() => { setCreating(false); setNewName(""); }} disabled={busy === "new"}>
Cancel
{t("Cancel")}
</button>
</div>
</div>
@@ -249,7 +250,7 @@ export default function AuthentikGroupList({ a }: { a: AuthentikInfo }) {
<td className="text-end text-secondary">{g.members === null ? "?" : g.members.length}</td>
<td className="text-end text-nowrap">
<button type="button" className="btn btn-sm btn-outline-secondary me-1" disabled={busy !== null} onClick={() => { setEditing(g.id); setNotice(null); }}>
Edit
{t("Edit")}
</button>
{g.admin ? (
<span className="small text-secondary" title="A group that makes administrators of Authentik is deleted in Authentik, not here.">
@@ -257,7 +258,7 @@ export default function AuthentikGroupList({ a }: { a: AuthentikInfo }) {
</span>
) : (
<button type="button" className="btn btn-sm btn-outline-danger" disabled={busy !== null} onClick={() => void removeGroup(g)}>
Delete
{t("Delete")}
</button>
)}
</td>