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
@@ -38,7 +38,7 @@ export default function NotesCard({ targetType, targetId, canEdit, bare = false
|
||||
const res = await api.notes.save(targetType, targetId, draft);
|
||||
setNote(res.note);
|
||||
setDraft(null);
|
||||
toast.success(res.note ? "Saved." : "Note removed.");
|
||||
toast.success(res.note ? t("Saved.") : t("Note removed."));
|
||||
} catch (err) {
|
||||
toast.error(readableError(err));
|
||||
} finally {
|
||||
@@ -52,10 +52,10 @@ export default function NotesCard({ targetType, targetId, canEdit, bare = false
|
||||
<BlockSkeleton lines={2} />
|
||||
) : draft !== null ? (
|
||||
<>
|
||||
<textarea className="form-control mb-2" rows={8} maxLength={8000} value={draft} onChange={(e) => setDraft(e.target.value)} aria-label="The note" placeholder={"What is it, where does it sit, what was done to it last time?\n\n- lists, **bold**, `code` and links work"} autoFocus />
|
||||
<textarea className="form-control mb-2" rows={8} maxLength={8000} value={draft} onChange={(e) => setDraft(e.target.value)} aria-label={t("The note")} placeholder={"What is it, where does it sit, what was done to it last time?\n\n- lists, **bold**, `code` and links work"} autoFocus />
|
||||
<div className="d-flex gap-2">
|
||||
<button type="button" className="btn btn-primary" disabled={busy} onClick={() => void save()}>
|
||||
{busy ? "Saving…" : "Save"}
|
||||
{busy ? "Saving…" : t("Save")}
|
||||
</button>
|
||||
<button type="button" className="btn" disabled={busy} onClick={() => setDraft(null)}>
|
||||
{t("Cancel")}
|
||||
@@ -77,7 +77,7 @@ export default function NotesCard({ targetType, targetId, canEdit, bare = false
|
||||
const edit =
|
||||
canEdit && draft === null && note !== undefined && !failed ? (
|
||||
<button type="button" className="btn btn-sm btn-primary" onClick={() => setDraft(note?.body ?? "")}>
|
||||
{note ? "Edit" : "Write a note"}
|
||||
{note ? "Edit" : t("Write a note")}
|
||||
</button>
|
||||
) : null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user