diff --git a/package.json b/package.json index 6f804a8..093f3c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/tasks", - "version": "0.1.20", + "version": "0.1.21", "private": true, "description": "Governed work items and unified work inbox for GovOPlaN.", "type": "module", diff --git a/pyproject.toml b/pyproject.toml index 9b81cdd..644e7fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-tasks" -version = "0.1.20" +version = "0.1.21" description = "Governed work items and unified work inbox for GovOPlaN." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_tasks/__init__.py b/src/govoplan_tasks/__init__.py index 6a80616..25bcfa6 100644 --- a/src/govoplan_tasks/__init__.py +++ b/src/govoplan_tasks/__init__.py @@ -1,3 +1,3 @@ """GovOPlaN Tasks module.""" -__version__ = "0.1.20" +__version__ = "0.1.21" diff --git a/src/govoplan_tasks/backend/german_structured_documentation.py b/src/govoplan_tasks/backend/german_structured_documentation.py new file mode 100644 index 0000000..f694d63 --- /dev/null +++ b/src/govoplan_tasks/backend/german_structured_documentation.py @@ -0,0 +1,29 @@ +"""German translations for public structured documentation metadata.""" + +from __future__ import annotations + +from typing import Any + + +GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'tasks.data-subject-requests': {'consequence_classes': {'export_assigned_task': 'Gibt nur ' + 'eingeschränkte ' + 'aufgabeneigene ' + 'Daten und genaue ' + 'Kontozuweisung ' + 'zurück.', + 'retain_actor_attribution': 'Bewahrt ' + 'minimierte ' + 'Task-Lifecycle-Rechenschaftsnachweise ' + 'vor.', + 'review_assignment_erasure': 'Benötigt ' + 'den ' + 'Besitzer ' + 'der ' + 'Task-Quelle ' + 'und die ' + 'Aufbewahrungsberechtigung, ' + 'bevor Sie ' + 'die ' + 'freigegebene ' + 'Arbeit ' + 'ändern.'}}} diff --git a/src/govoplan_tasks/backend/manifest.py b/src/govoplan_tasks/backend/manifest.py index b69f03c..2a3d618 100644 --- a/src/govoplan_tasks/backend/manifest.py +++ b/src/govoplan_tasks/backend/manifest.py @@ -1,5 +1,8 @@ from __future__ import annotations +from govoplan_core.core.modules import with_documentation_structured_translations +from govoplan_tasks.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS + from pathlib import Path from govoplan_core.core.access import ( @@ -44,7 +47,7 @@ from govoplan_tasks.backend.service import SqlTaskService MODULE_ID = "tasks" MODULE_NAME = "Tasks" -MODULE_VERSION = "0.1.20" +MODULE_VERSION = "0.1.21" READ_SCOPE = "tasks:item:read" WRITE_SCOPE = "tasks:item:write" ADMIN_SCOPE = "tasks:item:admin" @@ -492,6 +495,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 099652a..14b4d20 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/tasks-webui", - "version": "0.1.20", + "version": "0.1.21", "private": true, "type": "module", "main": "src/index.ts",