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:
1 parent
e7f23ba13f
commit
645816d5a8
168 files changed
+12142
-1422
No files matched your search
@@ -5,6 +5,7 @@ import CopyButton from "./CopyButton";
|
||||
import { ErrorNotice } from "./Notice";
|
||||
import { confirmDialog } from "../utils/dialogs";
|
||||
import { readableError } from "../utils/errors";
|
||||
import { t } from "../i18n";
|
||||
|
||||
const EMPTY = { username: "", name: "", email: "" };
|
||||
|
||||
@@ -25,7 +26,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
if (!a.canCreateUsers) {
|
||||
return (
|
||||
<div className="text-secondary small mt-3">
|
||||
To make and manage users from here, give this Authentik a token that may add, change and delete them: <Link to="/integrations">Integrations</Link> → edit → <em>Token for making and managing users</em>.
|
||||
To make and manage users from here, give this Authentik a token that may add, change and delete them: <Link to="/integrations">{t("Integrations")}</Link> → edit → <em>Token for making and managing users</em>.
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -120,7 +121,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
Make another
|
||||
</button>
|
||||
<button type="button" className="btn btn-sm btn-link text-secondary" onClick={close}>
|
||||
Done
|
||||
{t("Done")}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -139,13 +140,13 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
</div>
|
||||
<div className="col-md-4">
|
||||
<label className="form-label" htmlFor={`ak-name-${a.id}`}>
|
||||
Name
|
||||
{t("Name")}
|
||||
</label>
|
||||
<input id={`ak-name-${a.id}`} className="form-control" required maxLength={200} autoComplete="off" value={fields.name} onChange={(e) => setFields({ ...fields, name: e.target.value })} />
|
||||
</div>
|
||||
<div className="col-md-4">
|
||||
<label className="form-label" htmlFor={`ak-email-${a.id}`}>
|
||||
Email <span className="text-secondary">(optional)</span>
|
||||
Email <span className="text-secondary">{t("(optional)")}</span>
|
||||
</label>
|
||||
<input id={`ak-email-${a.id}`} type="email" className="form-control" maxLength={254} autoComplete="off" value={fields.email} onChange={(e) => setFields({ ...fields, email: e.target.value })} />
|
||||
</div>
|
||||
@@ -174,7 +175,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
{busy ? "Making…" : "Make user and link"}
|
||||
</button>
|
||||
<button type="button" className="btn btn-link text-secondary" onClick={close} disabled={busy}>
|
||||
Cancel
|
||||
{t("Cancel")}
|
||||
</button>
|
||||
<span className="text-secondary small">They choose their own password with the link; none is set here.</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user