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
@@ -7,6 +7,7 @@ import { toast } from "../utils/toast";
|
||||
import { BlockSkeleton } from "./Skeleton";
|
||||
import { ErrorNotice } from "./Notice";
|
||||
import TimeAgo from "./TimeAgo";
|
||||
import { t } from "../i18n";
|
||||
|
||||
const KIND_WORDS: Record<DbSnapshot["kind"], { label: string; badge: string; hint: string }> = {
|
||||
scheduled: { label: "daily", badge: "bg-blue-lt text-blue", hint: "Taken by the daily schedule" },
|
||||
@@ -155,7 +156,7 @@ export default function DatabaseBackups() {
|
||||
Servers whose agents were installed after that backup need their token rotated (Servers → Manage servers).
|
||||
</div>
|
||||
<button type="button" className="btn btn-sm btn-outline-secondary" onClick={() => void run("dismiss", () => api.dbBackups.dismissRestoreResult())}>
|
||||
Dismiss
|
||||
{t("Dismiss")}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -203,7 +204,7 @@ export default function DatabaseBackups() {
|
||||
</div>
|
||||
<div className="col-auto">
|
||||
<button type="submit" className="btn btn-sm btn-outline-primary" disabled={!dirty || busy !== null}>
|
||||
Save
|
||||
{t("Save")}
|
||||
</button>
|
||||
</div>
|
||||
<div className="col-12 text-secondary small">The time is in the notification time zone (Settings → Notifications). An alert is raised if the newest backup gets more than two days old.</div>
|
||||
@@ -220,7 +221,7 @@ export default function DatabaseBackups() {
|
||||
<th>Kind</th>
|
||||
<th>Taken</th>
|
||||
<th>Size</th>
|
||||
<th className="w-1">Actions</th>
|
||||
<th className="w-1">{t("Actions")}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -251,7 +252,7 @@ export default function DatabaseBackups() {
|
||||
Restore…
|
||||
</button>
|
||||
<button type="button" className="btn btn-sm btn-outline-danger" disabled={busy !== null} onClick={() => void remove(s)}>
|
||||
Delete
|
||||
{t("Delete")}
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in new issue
Block a user