diff --git a/pyproject.toml b/pyproject.toml index 6893708..6dc8587 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-quick-access" -version = "0.1.19" +version = "0.1.20" description = "Governed configurable Quick Access rail for GovOPlaN." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_quick_access/__init__.py b/src/govoplan_quick_access/__init__.py index 12049a0..fe87d49 100644 --- a/src/govoplan_quick_access/__init__.py +++ b/src/govoplan_quick_access/__init__.py @@ -1,3 +1,3 @@ """GovOPlaN Quick Access module.""" -__version__ = "0.1.19" +__version__ = "0.1.20" diff --git a/src/govoplan_quick_access/backend/german_structured_documentation.py b/src/govoplan_quick_access/backend/german_structured_documentation.py new file mode 100644 index 0000000..700e2ad --- /dev/null +++ b/src/govoplan_quick_access/backend/german_structured_documentation.py @@ -0,0 +1,32 @@ +"""German translations for public structured documentation metadata.""" + +from __future__ import annotations + +from typing import Any + + +GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'quick-access.data-subject-requests': {'consequence_classes': {'delete_personal_profile': 'Entfernt ' + 'persönliche ' + 'Overrides; ' + 'Reged ' + 'Defaults ' + 'gelten ' + 'wieder.', + 'export_personal_profile': 'Gibt ' + 'begrenzte ' + 'Schienenpräferenzen ' + 'zurück, ' + 'niemals ' + 'werkzeugeigene ' + 'Daten.', + 'retain_tenant_attribution': 'Preserves ' + 'minimiert ' + 'Mandant-Politik ' + 'Rechenschaftspflicht ' + 'Nachweise.'}}, + 'quick-access.user': {'steps': ['Öffnen Sie eine Kategorie auf der richtigen Schiene und wählen ' + 'Sie ein verfügbares kompaktes Werkzeug.', + 'Füllen Sie die begrenzte Aktion des Eigentümermoduls aus oder ' + 'stornieren Sie sie ausdrücklich.', + 'Folgen Sie dem Owning-Page-Link, wenn die Aufgabe die kompakte ' + 'Oberfläche übersteigt.']}} diff --git a/src/govoplan_quick_access/backend/manifest.py b/src/govoplan_quick_access/backend/manifest.py index 7db60b3..a5c18ff 100644 --- a/src/govoplan_quick_access/backend/manifest.py +++ b/src/govoplan_quick_access/backend/manifest.py @@ -1,5 +1,8 @@ from __future__ import annotations +from govoplan_core.core.modules import with_documentation_structured_translations +from govoplan_quick_access.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS + from pathlib import Path from govoplan_core.core.access import ( @@ -35,7 +38,7 @@ from govoplan_quick_access.backend.dsar_provider import ( MODULE_ID = "quick_access" MODULE_NAME = "Quick Access" -MODULE_VERSION = "0.1.19" +MODULE_VERSION = "0.1.20" READ_SCOPE = "quick_access:profile:read" WRITE_SCOPE = "quick_access:profile:write" @@ -425,6 +428,11 @@ manifest = ModuleManifest( ) +manifest = with_documentation_structured_translations( + manifest, locale="de", translations=GERMAN_STRUCTURED_TRANSLATIONS +) + + def get_manifest() -> ModuleManifest: return manifest diff --git a/webui/package.json b/webui/package.json index 07cefbc..663a2ca 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/quick-access-webui", - "version": "0.1.19", + "version": "0.1.20", "private": true, "type": "module", "main": "src/index.ts",