Files
office_translator/frontend/src/lib/i18n/messages/de/admin.json
sepehr fa637abff0
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m49s
perf+security: fix build, secure downloads, dedupe translations, refactor i18n
Frontend:
- Fix Framer Motion / motion-dom build error by pinning framer-motion to
  11.18.2 (compatible with React 19 and Next.js 16).
- Add cross-env and build:local script to bypass standalone symlink errors
  on Windows without Developer Mode.
- Allow NEXT_OUTPUT=default to disable standalone output for local builds.
- Refactor i18n: split 14,177-line src/lib/i18n.tsx into per-locale,
  per-namespace JSON files under src/lib/i18n/messages/.
- Load English synchronously; other locales loaded on demand via dynamic
  imports (reduces initial bundle, improves maintainability).
- Remove unused next-intl message files src/messages/en.json and fr.json.

Backend:
- Remove insecure legacy /api/v1/download/{filename} and /api/v1/cleanup/{filename}
  endpoints. The job-based /api/v1/download/{job_id} already enforces ownership.
- Deduplicate texts in TranslationService.translate_batch before sending them
  to the provider, reducing API calls for repeated strings.
- Pin httpx to <0.28 to fix TestClient incompatibility with starlette 0.35.1.
- Add pytest-cov and ruff dev dependencies/config.

DevOps:
- Remove hardcoded Grafana password from docker-compose.yml and
  docker-compose.monitoring.yml; use GRAFANA_PASSWORD env var.
- Change default TRANSLATION_SERVICE from ollama to google in
  docker-compose.yml (Ollama is an optional profile).
- Add GRAFANA_PASSWORD to .env.example.
- Add .coverage and frontend/pnpm-workspace.yaml to .gitignore.

Tests:
- Update API versioning tests for removed legacy endpoints.
- Add tests/test_translation_service.py for deduplication behavior.

Verified:
- pnpm run build:local passes.
- uv run pytest tests/test_providers/* tests/test_translation_service.py
  tests/test_story_3_5_api_versioning.py tests/test_download_endpoint.py
  tests/test_translators/test_excel_translator.py: provider/translator tests
  pass; one pre-existing French error-message test still fails (message is
  returned in English, unrelated to this change).
2026-06-14 16:44:18 +02:00

49 lines
2.4 KiB
JSON

{
"admin.login.title": "Administration",
"admin.login.required": "Anmeldung erforderlich",
"admin.login.password": "Admin-Passwort",
"admin.login.connecting": "Verbindung wird hergestellt...",
"admin.login.access": "Admin-Panel öffnen",
"admin.login.restricted": "Nur für Administratoren",
"admin.layout.checking": "Authentifizierung wird überprüft...",
"admin.dashboard.title": "Admin-Dashboard",
"admin.dashboard.subtitle": "Administratorkontrollpanel",
"admin.dashboard.refresh": "Aktualisieren",
"admin.dashboard.refreshTooltip": "Dashboard-Daten aktualisieren",
"admin.dashboard.config": "Systemkonfiguration",
"admin.dashboard.maxFileSize": "Max. Dateigröße:",
"admin.dashboard.translationService": "Übersetzungsdienst:",
"admin.dashboard.formats": "Formate:",
"admin.nav.dashboard": "Dashboard",
"admin.nav.users": "Benutzer",
"admin.nav.pricing": "Preise & Stripe",
"admin.nav.providers": "Anbieter",
"admin.nav.system": "System",
"admin.nav.logs": "Protokolle",
"admin.users.title": "Benutzerverwaltung",
"admin.users.subtitle": "Benutzerkonten anzeigen und verwalten",
"admin.users.planUpdated": "Plan aktualisiert",
"admin.users.planChanged": "Der Plan wurde erfolgreich zu \\\"{plan}\\\" geändert.",
"admin.users.unknownError": "Unbekannter Fehler",
"admin.users.error": "Fehler",
"admin.users.planUpdateError": "Plan konnte nicht aktualisiert werden: {message}",
"admin.users.noKeys": "Keine Schlüssel",
"admin.users.noKeysDesc": "Dieser Benutzer hat keine aktiven API-Schlüssel.",
"admin.users.keysRevoked": "Schlüssel widerrufen",
"admin.users.keysRevokedDesc": "{count} API-Schlüssel erfolgreich widerrufen.",
"admin.users.revokeError": "Schlüssel konnten nicht widerrufen werden: {message}",
"admin.users.retry": "Erneut versuchen",
"admin.system.title": "System",
"admin.system.subtitle": "Systemstatus überwachen und Ressourcen verwalten",
"admin.system.quotas": "Übersetzungskontingente",
"admin.system.resetQuotas": "Monatliche Kontingente zurücksetzen",
"admin.system.resetting": "Zurücksetzen...",
"admin.system.reset": "Zurücksetzen",
"admin.system.allOperational": "Alle Systeme betriebsbereit",
"admin.system.issuesDetected": "Systemprobleme erkannt",
"admin.system.waitingData": "Warte auf Daten...",
"admin.system.purging": "Bereinigung läuft...",
"admin.system.clean": "Bereinigen",
"admin.system.purge": "Bereinigen"
}