diff --git a/pyproject.toml b/pyproject.toml index e857dc8..3371008 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-dataflow" -version = "0.1.21" +version = "0.1.22" description = "Governed graphical and SQL data pipelines for GovOPlaN." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_dataflow/__init__.py b/src/govoplan_dataflow/__init__.py index 04071b1..0b2d542 100644 --- a/src/govoplan_dataflow/__init__.py +++ b/src/govoplan_dataflow/__init__.py @@ -1,3 +1,3 @@ from __future__ import annotations -__version__ = "0.1.21" +__version__ = "0.1.22" diff --git a/src/govoplan_dataflow/backend/german_structured_documentation.py b/src/govoplan_dataflow/backend/german_structured_documentation.py new file mode 100644 index 0000000..14ad957 --- /dev/null +++ b/src/govoplan_dataflow/backend/german_structured_documentation.py @@ -0,0 +1,95 @@ +"""German translations for public structured documentation metadata.""" + +from __future__ import annotations + +from typing import Any + + +GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'dataflow.execution-and-recovery': {'consequence_classes': {'cancel_run': 'Stornierung von ' + 'Anfragen; bereits ' + 'anerkannte externe ' + 'Effekte können ' + 'verbleiben.', + 'promote_revision': 'Macht eine ' + 'unveränderliche ' + 'Revision in ' + 'einer höheren ' + 'Ausführungsumgebung ' + 'geeignet.', + 'publish_output': 'Erstellt oder ' + 'aktualisiert eine ' + 'geregelte ' + 'Datenquelle und ' + 'fügt eine ' + 'Materialisierung ' + 'hinzu.', + 'queue_run': 'Erstellt einen ' + 'dauerhaften asynchronen ' + 'Befehls- und ' + 'Autorisierungsnachweis.'}}, + 'dataflow.reference.fields-and-consequences': {'consequence_classes': {'configure_trigger': 'Erstellt ' + 'oder ' + 'ändert ' + 'einen ' + 'Automatisierungsbefehl ' + 'mit ' + 'Revisions- ' + 'und ' + 'Autorisierungsnachweisen.', + 'delete_pipeline': 'Verhindert ' + 'die ' + 'zukünftige ' + 'Verwendung, ' + 'während ' + 'beibehaltene ' + 'Nachweise ' + 'geregelt ' + 'bleiben.', + 'derive_copy': 'Erstellt ' + 'eine ' + 'separat ' + 'verwaltete ' + 'Kopie, die ' + 'an die ' + 'Quellrevision ' + 'und den ' + 'Hash ' + 'gebunden ' + 'ist.', + 'rebase_copy': 'Hängt die ' + 'genaue ' + 'überprüfte ' + 'Quellrevision ' + 'an eine ' + 'Scope-Kopie ' + 'an, ' + 'zeichnet ' + 'die ' + 'Herkunft ' + 'des ' + 'Reviewers ' + 'auf und ' + 'gibt sie ' + 'in den ' + 'Entwurf ' + 'zurück.', + 'record_decision': 'Fügt ' + 'eine ' + 'vom ' + 'handelnde ' + 'Person ' + 'zugewiesene ' + 'unveränderliche ' + 'Entscheidungsrevision ' + 'gegen ' + 'einen ' + 'genauen ' + 'Eingabe-Hash ' + 'an.', + 'save_revision': 'Fügt ' + 'eine ' + 'unveränderliche ' + 'Überarbeitung ' + 'der ' + 'Pipelinedefinition ' + 'an.'}}} diff --git a/src/govoplan_dataflow/backend/manifest.py b/src/govoplan_dataflow/backend/manifest.py index 8a4a7b3..3a295a5 100644 --- a/src/govoplan_dataflow/backend/manifest.py +++ b/src/govoplan_dataflow/backend/manifest.py @@ -1,5 +1,8 @@ from __future__ import annotations +from govoplan_core.core.modules import with_documentation_structured_translations +from govoplan_dataflow.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS + from pathlib import Path from govoplan_core.core.module_guards import ( @@ -60,7 +63,7 @@ from govoplan_dataflow.backend.german_documentation import ( MODULE_ID = "dataflow" MODULE_NAME = "Dataflow" -MODULE_VERSION = "0.1.21" +MODULE_VERSION = "0.1.22" READ_SCOPE = "dataflow:pipeline:read" WRITE_SCOPE = "dataflow:pipeline:write" @@ -799,6 +802,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 324950d..ab32594 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/dataflow-webui", - "version": "0.1.21", + "version": "0.1.22", "private": true, "type": "module", "main": "src/index.ts",