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

+15 -15
View File
@@ -67,7 +67,7 @@ export default function DiagLogView() {
}
async function handleClear() {
if (!(await confirmDialog({ title: "Clear diagnostic log", message: "Clear the entire diagnostic log? This cannot be undone.", confirmLabel: "Clear log", danger: true }))) return;
if (!(await confirmDialog({ title: t("Clear diagnostic log"), message: "Clear the entire diagnostic log? This cannot be undone.", confirmLabel: t("Clear log"), danger: true }))) return;
setClearing(true);
try {
await api.diagLog.clear();
@@ -100,7 +100,7 @@ export default function DiagLogView() {
Every call this app makes to a DNS provider or integration — the last 500 calls are kept. Use this to troubleshoot connectivity issues.
</div>
<button className="btn btn-outline-danger ms-auto" onClick={handleClear} disabled={clearing || total === 0}>
{clearing ? "Clearing…" : "Clear log"}
{clearing ? "Clearing…" : t("Clear log")}
</button>
</div>
<ErrorNotice error={error} />
@@ -111,7 +111,7 @@ export default function DiagLogView() {
<div className="col-md-3">
<label className="form-label">{t("Source")}</label>
<select className="form-select" value={filterSource} onChange={(e) => setFilterSource(e.target.value)}>
<option value="">All sources</option>
<option value="">{t("All sources")}</option>
{Object.entries(SOURCE_LABELS).map(([value, label]) => (
<option key={value} value={value}>
{label}
@@ -120,16 +120,16 @@ export default function DiagLogView() {
</select>
</div>
<div className="col-md-3">
<label className="form-label">Result</label>
<label className="form-label">{t("Result")}</label>
<select className="form-select" value={filterOk} onChange={(e) => setFilterOk(e.target.value)}>
<option value="">All results</option>
<option value="false">Errors only</option>
<option value="true">Success only</option>
<option value="">{t("All results")}</option>
<option value="false">{t("Errors only")}</option>
<option value="true">{t("Success only")}</option>
</select>
</div>
<div className="col-md-6 d-flex justify-content-end gap-2">
<button className="btn btn-outline-secondary" onClick={() => load(page)} disabled={loading}>
{loading ? "Refreshing…" : "Refresh"}
{loading ? t("Refreshing…") : t("Refresh")}
</button>
<button className="btn btn-outline-secondary" onClick={exportCsv} disabled={!sorted || sorted.length === 0}>
{t("Export CSV")}
@@ -150,18 +150,18 @@ export default function DiagLogView() {
<table className="table table-vcenter card-table">
<thead>
<tr>
<SortableTh<DiagLogEntry> label="Time" sortKeyName="createdAt" activeKey={sortKey} direction={sortDir} onSort={requestSort} />
<SortableTh<DiagLogEntry> label={t("Time")} sortKeyName="createdAt" activeKey={sortKey} direction={sortDir} onSort={requestSort} />
<SortableTh<DiagLogEntry> label={t("Source")} sortKeyName="source" activeKey={sortKey} direction={sortDir} onSort={requestSort} />
<SortableTh<DiagLogEntry> label="Operation" sortKeyName="operation" activeKey={sortKey} direction={sortDir} onSort={requestSort} />
<SortableTh<DiagLogEntry> label="Result" sortKeyName="ok" activeKey={sortKey} direction={sortDir} onSort={requestSort} />
<SortableTh<DiagLogEntry> label={t("Operation")} sortKeyName="operation" activeKey={sortKey} direction={sortDir} onSort={requestSort} />
<SortableTh<DiagLogEntry> label={t("Result")} sortKeyName="ok" activeKey={sortKey} direction={sortDir} onSort={requestSort} />
<SortableTh<DiagLogEntry>
label="Latency"
label={t("Latency")}
sortKeyName="latencyMs"
activeKey={sortKey}
direction={sortDir}
onSort={requestSort}
/>
<th>Error</th>
<th>{t("Error")}</th>
</tr>
</thead>
<tbody>
@@ -176,7 +176,7 @@ export default function DiagLogView() {
{e.ok ? (
<span className="badge bg-green-lt text-green">{t("OK")}</span>
) : (
<span className="badge bg-red-lt text-red">Error</span>
<span className="badge bg-red-lt text-red">{t("Error")}</span>
)}
</td>
<td className={`text-secondary ${e.latencyMs > 2000 ? "text-yellow" : ""}`}>{e.latencyMs}ms</td>
@@ -187,7 +187,7 @@ export default function DiagLogView() {
))}
{entries === null && <LoadingRow colSpan={6} />}
{sorted?.length === 0 && (
<EmptyRow colSpan={6} {...(filterSource || filterOk ? { filtered: () => { setFilterSource(""); setFilterOk(""); } } : { title: "No diagnostic entries yet", hint: "Every call the app makes to an integration or a DNS provider is logged here, with how long it took and whether it worked." })} />
<EmptyRow colSpan={6} {...(filterSource || filterOk ? { filtered: () => { setFilterSource(""); setFilterOk(""); } } : { title: t("No diagnostic entries yet"), hint: t("Every call the app makes to an integration or a DNS provider is logged here, with how long it took and whether it worked.") })} />
)}
</tbody>
</table>