feat: rebuild preview pages with real API content and full i18n

- preview.php: localized pitch + features for en/no (uk/pl fall back to en)
- Sample outputs now match actual API response format: streaming pipeline
  steps, confidence fields, entity counts, corpus slice names, speaker roles
- i18n.php: add 10 preview-specific keys across all 4 languages (en/no/uk/pl)
- Transcribe: shows 3-engine cascade + real speaker roles (saksbehandler/dommer/advokat)
- Timeline: shows date_type, confidence, what_remains_uncertain, next_practical_step
- Redact: shows two-pass pipeline (regex Nordic pack + LLM NER) + contextual tags
- Barnevernet: shows 7-step streaming trace + procedural flag severity levels
- Advocate: shows partisan brief with advocate_role + citation confidence
- Deep Research: shows corpus slices + sub-questions + contradiction-aware synthesis
- Corpus: shows real Qdrant + Azure AI Search config, hybrid search result

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-17 14:39:12 +02:00
parent 849a7cf434
commit 93b28b8783
2 changed files with 424 additions and 100 deletions
+36
View File
@@ -110,6 +110,15 @@ function dbnToolsTranslations(): array
'source_title' => 'Sources stay visible',
'source_text' => 'Research tools keep citations, sections, source excerpts, and uncertainty notes next to the answer.',
'tools_title' => 'Launched tools',
'preview_back' => '← All tools',
'preview_what_it_does' => 'What it does',
'preview_get_access' => 'Get access',
'preview_ready_title' => 'Ready to use',
'preview_free_note' => 'Free for Do Better Norge members. Documents are processed in memory and never stored.',
'preview_other_tools' => 'Other tools',
'preview_join' => 'Not a member? Join Do Better Norge',
'preview_input_label' => 'Sample input',
'preview_output_label' => 'Sample output',
],
'no' => [
'meta_title' => 'Do Better Norge - juridiske AI-verktøy',
@@ -153,6 +162,15 @@ function dbnToolsTranslations(): array
'source_title' => 'Kildene er synlige',
'source_text' => 'Forskningsverktøyene holder sitater, paragrafer, kildeutdrag og usikkerhet ved siden av svaret.',
'tools_title' => 'Lanserte verktøy',
'preview_back' => '← Alle verktøy',
'preview_what_it_does' => 'Hva det gjør',
'preview_get_access' => 'Få tilgang',
'preview_ready_title' => 'Klar til å bruke',
'preview_free_note' => 'Gratis for Do Better Norge-medlemmer. Dokumenter behandles i minnet og lagres aldri.',
'preview_other_tools' => 'Andre verktøy',
'preview_join' => 'Ikke medlem? Bli med i Do Better Norge',
'preview_input_label' => 'Eksempel — inndata',
'preview_output_label' => 'Eksempel — utdata',
],
'uk' => [
'meta_title' => 'Do Better Norge - юридичні AI інструменти',
@@ -196,6 +214,15 @@ function dbnToolsTranslations(): array
'source_title' => 'Джерела залишаються видимими',
'source_text' => 'Дослідницькі інструменти показують цитати, розділи, уривки джерел і примітки про невизначеність поруч із відповіддю.',
'tools_title' => 'Запущені інструменти',
'preview_back' => '← Усі інструменти',
'preview_what_it_does' => 'Що робить',
'preview_get_access' => 'Отримати доступ',
'preview_ready_title' => 'Готові до використання',
'preview_free_note' => 'Безкоштовно для членів Do Better Norge. Документи обробляються в пам\'яті і ніколи не зберігаються.',
'preview_other_tools' => 'Інші інструменти',
'preview_join' => 'Не член? Приєднайтесь до Do Better Norge',
'preview_input_label' => 'Приклад — вхідні дані',
'preview_output_label' => 'Приклад — вихідні дані',
],
'pl' => [
'meta_title' => 'Do Better Norge - prawne narzędzia AI',
@@ -239,6 +266,15 @@ function dbnToolsTranslations(): array
'source_title' => 'Źródła pozostają widoczne',
'source_text' => 'Narzędzia badawcze pokazują cytaty, sekcje, fragmenty źródeł i notatki o niepewności obok odpowiedzi.',
'tools_title' => 'Uruchomione narzędzia',
'preview_back' => '← Wszystkie narzędzia',
'preview_what_it_does' => 'Co robi',
'preview_get_access' => 'Uzyskaj dostęp',
'preview_ready_title' => 'Gotowe do użycia',
'preview_free_note' => 'Bezpłatnie dla członków Do Better Norge. Dokumenty są przetwarzane w pamięci i nigdy nie są przechowywane.',
'preview_other_tools' => 'Inne narzędzia',
'preview_join' => 'Nie jesteś członkiem? Dołącz do Do Better Norge',
'preview_input_label' => 'Przykład — dane wejściowe',
'preview_output_label' => 'Przykład — dane wyjściowe',
],
];
}