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
@@ -6,6 +6,7 @@ import { PageSkeleton } from "./Skeleton";
|
||||
import { readableError } from "../utils/errors";
|
||||
import MapLinesToggle, { useMapLineStyle } from "../components/MapLinesToggle";
|
||||
import { edgePath } from "../utils/mapLines";
|
||||
import { t } from "../i18n";
|
||||
|
||||
const NODE_W = 200;
|
||||
const NODE_H = 46;
|
||||
@@ -186,14 +187,14 @@ export default function DependencyMap() {
|
||||
{selected !== active && <span className="text-secondary small ms-2">(click to keep this)</span>}
|
||||
</div>
|
||||
<div className={sets.down.size ? "text-red" : "text-secondary"}>
|
||||
{sets.down.size ? `If it goes down, ${sets.down.size} ${sets.down.size === 1 ? "thing goes" : "things go"} with it: ${names(graph, sets.down).join(", ")}.` : "Nothing depends on it."}
|
||||
{sets.down.size ? `If it goes down, ${sets.down.size} ${sets.down.size === 1 ? "thing goes" : "things go"} with it: ${names(graph, sets.down).join(", ")}.` : t("Nothing depends on it.")}
|
||||
</div>
|
||||
<div className="text-secondary">{sets.up.size ? `It relies on ${names(graph, sets.up).join(", ")}.` : "It relies on nothing here."}</div>
|
||||
<div className="text-secondary">{sets.up.size ? `It relies on ${names(graph, sets.up).join(", ")}.` : t("It relies on nothing here.")}</div>
|
||||
</div>
|
||||
) : (
|
||||
<div className="text-secondary small d-flex flex-wrap gap-3">
|
||||
<span>Lines run from what is needed (left) to what needs it (right). Dashed: “runs on”, set on the server.</span>
|
||||
<span className="ms-auto">Pick a box to see what would go down with it.</span>
|
||||
<span className="ms-auto">{t("Pick a box to see what would go down with it.")}</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user