diff --git a/package.json b/package.json index 5dc6f87..c8fc6de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/inspections", - "version": "0.1.19", + "version": "0.1.20", "private": true, "description": "GovOPlaN Inspections platform module seed.", "type": "module", diff --git a/pyproject.toml b/pyproject.toml index 59b04e4..bb0757a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-inspections" -version = "0.1.19" +version = "0.1.20" description = "GovOPlaN Inspections platform module seed." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_inspections/backend/german_structured_documentation.py b/src/govoplan_inspections/backend/german_structured_documentation.py new file mode 100644 index 0000000..acd6f1f --- /dev/null +++ b/src/govoplan_inspections/backend/german_structured_documentation.py @@ -0,0 +1,12 @@ +"""German translations for public structured documentation metadata.""" + +from __future__ import annotations + +from typing import Any + + +GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'inspections.module-boundary': {'consequence_classes': {'seed_boundary': 'Erklärt nur Besitz und ' + 'Berechtigungen an; es ' + 'ist noch kein ' + 'Laufzeit-Workflow ' + 'verfügbar.'}}} diff --git a/src/govoplan_inspections/backend/manifest.py b/src/govoplan_inspections/backend/manifest.py index 26fefbd..69652cd 100644 --- a/src/govoplan_inspections/backend/manifest.py +++ b/src/govoplan_inspections/backend/manifest.py @@ -1,12 +1,15 @@ from __future__ import annotations +from govoplan_core.core.modules import with_documentation_structured_translations +from govoplan_inspections.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS + from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPABILITY_AUTH_PRINCIPAL_RESOLVER from govoplan_core.core.modules import DocumentationLink, DocumentationTopic, ModuleManifest, PermissionDefinition, RoleTemplate from govoplan_core.core.provider_governance import declared_module_architecture MODULE_ID = "inspections" MODULE_NAME = "Inspections" -MODULE_VERSION = "0.1.19" +MODULE_VERSION = "0.1.20" READ_SCOPE = "inspections:workspace:read" WRITE_SCOPE = "inspections:workspace:write" ADMIN_SCOPE = "inspections:workspace:admin" @@ -119,5 +122,10 @@ manifest = ModuleManifest( ) +manifest = with_documentation_structured_translations( + manifest, locale="de", translations=GERMAN_STRUCTURED_TRANSLATIONS +) + + def get_manifest() -> ModuleManifest: return manifest