Swedish interface: labels and short texts across every page
About 1,600 more headings, buttons, table columns, status words, placeholders and short messages are translated. Tables of words built when the app loads are now read when they are drawn, so they follow the language, and a test fails if text is translated at load time. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
25183c0320
commit
6e39430a1f
173 files changed
+3922
-2245
No files matched your search
@@ -69,7 +69,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
}
|
||||
|
||||
async function stopAllowing() {
|
||||
if (!(await confirmDialog({ title: "Stop managing users", message: `Remove the token for making and managing users from "${a.name}"? Reading it carries on. You can add one again under Integrations.`, confirmLabel: "Remove", danger: true }))) return;
|
||||
if (!(await confirmDialog({ title: t("Stop managing users"), message: `Remove the token for making and managing users from "${a.name}"? Reading it carries on. You can add one again under Integrations.`, confirmLabel: t("Remove"), danger: true }))) return;
|
||||
try {
|
||||
await api.authentik.removeWriteToken(a.id);
|
||||
close();
|
||||
@@ -83,14 +83,14 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
|
||||
return (
|
||||
<div className="mt-3">
|
||||
<h4>New user</h4>
|
||||
<h4>{t("New user")}</h4>
|
||||
{!open && (
|
||||
<div className="d-flex flex-wrap align-items-center gap-2">
|
||||
<button type="button" className="btn btn-sm btn-primary" onClick={() => void show()}>
|
||||
New user…
|
||||
{t("New user…")}
|
||||
</button>
|
||||
<button type="button" className="btn btn-sm btn-link text-secondary" onClick={() => void stopAllowing()}>
|
||||
Stop allowing this
|
||||
{t("Stop allowing this")}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
@@ -104,7 +104,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
{made.link ? (
|
||||
<>
|
||||
<div className="input-group mb-2">
|
||||
<input className="form-control" readOnly value={made.link} aria-label="Recovery link" onFocus={(e) => e.currentTarget.select()} />
|
||||
<input className="form-control" readOnly value={made.link} aria-label={t("Recovery link")} onFocus={(e) => e.currentTarget.select()} />
|
||||
<CopyButton text={made.link} />
|
||||
</div>
|
||||
<div className="text-secondary small mb-3">
|
||||
@@ -118,7 +118,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
</div>
|
||||
)}
|
||||
<button type="button" className="btn btn-sm btn-outline-secondary me-2" onClick={() => void show()}>
|
||||
Make another
|
||||
{t("Make another")}
|
||||
</button>
|
||||
<button type="button" className="btn btn-sm btn-link text-secondary" onClick={close}>
|
||||
{t("Done")}
|
||||
@@ -134,7 +134,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
<div className="row g-2 mb-3">
|
||||
<div className="col-md-4">
|
||||
<label className="form-label" htmlFor={`ak-user-${a.id}`}>
|
||||
User name
|
||||
{t("User name")}
|
||||
</label>
|
||||
<input id={`ak-user-${a.id}`} className="form-control" required maxLength={150} autoComplete="off" value={fields.username} onChange={(e) => setFields({ ...fields, username: e.target.value })} />
|
||||
</div>
|
||||
@@ -152,10 +152,10 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-label">Groups</div>
|
||||
{groups === null && <div className="text-secondary small mb-3">Reading the groups…</div>}
|
||||
<div className="form-label">{t("Groups")}</div>
|
||||
{groups === null && <div className="text-secondary small mb-3">{t("Reading the groups…")}</div>}
|
||||
{groupsError && <div className="text-yellow small mb-2">The groups could not be read: {groupsError}. The user can still be made, without groups.</div>}
|
||||
{groups && groups.length === 0 && !groupsError && <div className="text-secondary small mb-3">There are no groups.</div>}
|
||||
{groups && groups.length === 0 && !groupsError && <div className="text-secondary small mb-3">{t("There are no groups.")}</div>}
|
||||
{groups && groups.length > 0 && (
|
||||
<div className="mb-3">
|
||||
{groups.map((g) => (
|
||||
@@ -172,7 +172,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
|
||||
<div className="d-flex flex-wrap align-items-center gap-2">
|
||||
<button type="submit" className="btn btn-primary" disabled={busy || groups === null}>
|
||||
{busy ? "Making…" : "Make user and link"}
|
||||
{busy ? "Making…" : t("Make user and link")}
|
||||
</button>
|
||||
<button type="button" className="btn btn-link text-secondary" onClick={close} disabled={busy}>
|
||||
{t("Cancel")}
|
||||
|
||||
Reference in new issue
Block a user