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:
bobbanandClaude Sonnet 5.5 committed 2026-11-16 20:16:39 +01:00
1 parent 25183c0320
commit 6e39430a1f
173 files changed
+3922 -2245

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
import type { ReactNode } from "react";
import { IconEye, IconEyeOff } from "@tabler/icons-react";
import { setCardHidden, useDashboardLayout } from "../utils/dashboardLayout";
import { t } from "../i18n";
/** Whether the person has hidden a dashboard card, whether they are arranging the dashboard, and so whether the card is to be drawn (hidden ones are drawn, dimmed, while arranging). */
export function useCardState(label: string): { hidden: boolean; editing: boolean; shown: boolean } {
@@ -16,7 +17,7 @@ export function HideBar({ label, hidden }: { label: string; hidden: boolean }) {
<span className="small text-secondary">{label}</span>
<button type="button" className="btn btn-sm ms-auto d-inline-flex align-items-center gap-1" aria-pressed={hidden} onClick={() => void setCardHidden(label, !hidden)}>
{hidden ? <IconEye size={16} aria-hidden="true" /> : <IconEyeOff size={16} aria-hidden="true" />}
{hidden ? "Show" : "Hide"}
{hidden ? "Show" : t("Hide")}
<span className="visually-hidden"> {label}</span>
</button>
</div>