docs: complete German structured documentation
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@govoplan/helpdesk-webui",
|
||||
"version": "0.1.20",
|
||||
"version": "0.1.21",
|
||||
"private": true,
|
||||
"description": "GovOPlaN Helpdesk service-profile and ticket-routing policy module.",
|
||||
"type": "module",
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "govoplan-helpdesk"
|
||||
version = "0.1.20"
|
||||
version = "0.1.21"
|
||||
description = "GovOPlaN Helpdesk service-profile and ticket-routing policy module."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
"""German translations for public structured documentation metadata."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'helpdesk.module-boundary': {'consequence_classes': {'policy_overlay': 'Wendet Warteschlangen- '
|
||||
'und '
|
||||
'Service-Zielrichtlinien '
|
||||
'an, ohne den '
|
||||
'Ticket-Status zu '
|
||||
'duplizieren.',
|
||||
'reduced_installation': 'Manuelles '
|
||||
'Ticket-Routing '
|
||||
'bleibt verfügbar, '
|
||||
'wenn Helpdesk '
|
||||
'deaktiviert ist.'}}}
|
||||
@@ -1,5 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from govoplan_core.core.modules import with_documentation_structured_translations
|
||||
from govoplan_helpdesk.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPABILITY_AUTH_PRINCIPAL_RESOLVER
|
||||
@@ -31,7 +34,7 @@ from govoplan_helpdesk.backend.service import SqlHelpdeskRoutingProvider
|
||||
|
||||
MODULE_ID = "helpdesk"
|
||||
MODULE_NAME = "Helpdesk"
|
||||
MODULE_VERSION = "0.1.20"
|
||||
MODULE_VERSION = "0.1.21"
|
||||
READ_SCOPE = "helpdesk:workspace:read"
|
||||
WRITE_SCOPE = "helpdesk:workspace:write"
|
||||
ADMIN_SCOPE = "helpdesk:workspace:admin"
|
||||
@@ -220,5 +223,10 @@ manifest = ModuleManifest(
|
||||
)
|
||||
|
||||
|
||||
manifest = with_documentation_structured_translations(
|
||||
manifest, locale="de", translations=GERMAN_STRUCTURED_TRANSLATIONS
|
||||
)
|
||||
|
||||
|
||||
def get_manifest() -> ModuleManifest:
|
||||
return manifest
|
||||
|
||||
@@ -11,7 +11,7 @@ class ManifestTests(unittest.TestCase):
|
||||
def test_manifest_registers_helpdesk_policy_overlay(self) -> None:
|
||||
manifest = get_manifest()
|
||||
self.assertEqual("helpdesk", manifest.id)
|
||||
self.assertEqual("0.1.20", manifest.version)
|
||||
self.assertEqual("0.1.21", manifest.version)
|
||||
self.assertEqual({READ_SCOPE, WRITE_SCOPE, ADMIN_SCOPE}, {item.scope for item in manifest.permissions})
|
||||
self.assertEqual({"helpdesk_manager", "helpdesk_viewer", "helpdesk_administrator"}, {item.slug for item in manifest.role_templates})
|
||||
self.assertIsNotNone(manifest.route_factory)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@govoplan/helpdesk-webui",
|
||||
"version": "0.1.20",
|
||||
"version": "0.1.21",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
|
||||
Reference in New Issue
Block a user