fix(i18n): complete Portal German headings and contextual help

Verified with the coordinated workspace changes by devkit full run
2026-09-08T225814-186389-0000-3e3ed7cd (all seven phases passed).
This shared UI pass does not mark the individual module reviews complete.
This commit is contained in:
2026-09-09 02:03:59 +02:00
parent d2a19248c4
commit 2f5a69034a
7 changed files with 139 additions and 5 deletions
+6 -2
View File
@@ -18,6 +18,7 @@ import { ActionBlockerHint,
StatusBadge,
ToggleSwitch,
useGuardedNavigate,
usePlatformLanguage,
WorkspaceActionBar,
WorkspaceFrame,
type PlatformRouteContext
@@ -33,6 +34,7 @@ import {
export default function PortalPage({ settings }: PlatformRouteContext) {
const navigate = useGuardedNavigate();
const { translateText } = usePlatformLanguage();
const [query, setQuery] = useState("");
const [submittedQuery, setSubmittedQuery] = useState("");
const [includeUnavailable, setIncludeUnavailable] = useState(true);
@@ -155,7 +157,9 @@ export default function PortalPage({ settings }: PlatformRouteContext) {
onChange={setIncludeUnavailable}
/>
</>}
helpAction={<DocumentationHelpLink
title="Service directory"
titleLevel={1}
titleHelp={<DocumentationHelpLink
reference={{ topicId: "portal.service-directory", documentationType: "user" }}
label="Open service directory documentation"
/>}
@@ -177,7 +181,7 @@ export default function PortalPage({ settings }: PlatformRouteContext) {
<section className="portal-postboxes" aria-labelledby="portal-postboxes-heading">
<div className="portal-section-heading">
<Inbox size={18} aria-hidden="true" />
<h2 id="portal-postboxes-heading">My function postboxes</h2>
<h2 id="portal-postboxes-heading">{translateText("My function postboxes")}</h2>
</div>
<div className="portal-postbox-list">
{postboxes.map((entry) => (
+19
View File
@@ -0,0 +1,19 @@
import type { PlatformTranslations } from "@govoplan/core-webui";
/** Module-owned translations for contextual headings. */
export const generatedTranslations: PlatformTranslations = {
en: {
"Service directory": "Service directory",
"My function postboxes": "My function postboxes",
"Sign in to view status": "Sign in to view status",
"Request a short-lived status link": "Request a short-lived status link",
"Timeline": "Timeline",
},
de: {
"Service directory": "Leistungsverzeichnis",
"My function postboxes": "Meine Funktionspostfächer",
"Sign in to view status": "Anmelden, um den Status anzuzeigen",
"Request a short-lived status link": "Kurzlebigen Statuslink anfordern",
"Timeline": "Verlauf",
},
};
+2
View File
@@ -1,5 +1,6 @@
import { createElement, lazy } from "react";
import type { PlatformWebModule } from "@govoplan/core-webui";
import { generatedTranslations } from "./i18n/generatedTranslations";
import "./styles/portal.css";
@@ -7,6 +8,7 @@ const PortalPage = lazy(() => import("./features/portal/PortalPage"));
const PortalStatusPage = lazy(() => import("./features/portal/PortalStatusPage"));
export const portalModule: PlatformWebModule = {
translations: generatedTranslations,
id: "portal",
label: "Services",
version: "0.1.19",