From 084a1d9e2aca33bc1552d85e6aa5f36543032f04 Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Fri, 13 Mar 2026 11:09:03 +0100 Subject: [PATCH] Update admin UI translations and enhance content list: Add 'Status' and 'Published' labels in German and English, and implement status display in the content list page. Format related pages in demo welcome JSON for better readability. --- admin-ui/messages/de.json | 2 ++ admin-ui/messages/en.json | 2 ++ .../src/app/content/[collection]/page.tsx | 19 ++++++++++++++----- content/de/demo/demo-welcome.json5 | 5 ++++- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/admin-ui/messages/de.json b/admin-ui/messages/de.json index 4b8356e..db860a5 100644 --- a/admin-ui/messages/de.json +++ b/admin-ui/messages/de.json @@ -338,6 +338,8 @@ "title": "Einträge", "newEntry": "Neuer Eintrag", "colActions": "Aktionen", + "colStatus": "Status", + "published": "Veröffentlicht", "noEntries": "Keine Einträge.", "noEntriesCreate": "Noch keine Einträge. Erstellen Sie den ersten.", "edit": "Bearbeiten", diff --git a/admin-ui/messages/en.json b/admin-ui/messages/en.json index c53f6c1..92cfe27 100644 --- a/admin-ui/messages/en.json +++ b/admin-ui/messages/en.json @@ -338,6 +338,8 @@ "title": "Entries", "newEntry": "New entry", "colActions": "Actions", + "colStatus": "Status", + "published": "Published", "noEntries": "No entries.", "noEntriesCreate": "No entries yet. Create the first one.", "edit": "Edit", diff --git a/admin-ui/src/app/content/[collection]/page.tsx b/admin-ui/src/app/content/[collection]/page.tsx index 0ff2179..9df9975 100644 --- a/admin-ui/src/app/content/[collection]/page.tsx +++ b/admin-ui/src/app/content/[collection]/page.tsx @@ -201,6 +201,7 @@ export default function ContentListPage() { _slug + {t("colStatus")} {t("colActions")} @@ -208,6 +209,7 @@ export default function ContentListPage() { {[1, 2, 3, 4, 5].map((i) => ( + ))} @@ -256,6 +258,7 @@ export default function ContentListPage() { )} + {t("colStatus")} {t("colActions")} @@ -275,11 +278,17 @@ export default function ContentListPage() { > {slug} - {isDraft && ( - - {t("draft")} - - )} + + + + {isDraft ? t("draft") : t("published")} +
diff --git a/content/de/demo/demo-welcome.json5 b/content/de/demo/demo-welcome.json5 index a1b6741..9c77d59 100644 --- a/content/de/demo/demo-welcome.json5 +++ b/content/de/demo/demo-welcome.json5 @@ -22,7 +22,10 @@ "publishedAt": "", "quantity": null, "relatedPage": "home", - "relatedPages": ["home", "about"], + "relatedPages": [ + "home", + "about" + ], "scores": [], "singleSelect": "", "summary": "",