Skip to content

feat(i18n): czech chats answer in czech, not english - #955

Merged
ussaama merged 2 commits into
mainfrom
feat/czech-prompt-templates
Aug 3, 2026
Merged

feat(i18n): czech chats answer in czech, not english#955
ussaama merged 2 commits into
mainfrom
feat/czech-prompt-templates

Conversation

@ussaama

@ussaama ussaama commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What this changes

  • Czech gets the same 10 prompt templates Italian and Ukrainian have, written in Czech rather than English with a "write in Czech" instruction — system_chat, context_conversations, system_report, generate_conversation_summary, get_reply_system (incl. the PII redaction block), get_reply_brainstorm, get_reply_summarize, summary, translate_transcription, default_whisper_prompt
  • Czech is selectable as a project language: ALLOWED_LANGUAGES in service/project.py, the zod enum and the language dropdown in ProjectPortalEditor.tsx (the dropdown had no Czech option at all)
  • The prompt-template support matrix logs a cs column — prompts.py
  • The language picker no longer clips its last entry: Mantine's 220px default dropdown height cut Czech off — LanguagePicker.tsx

Why: #657 added cs-CZ as an interface and portal locale but no prompt templates. render_prompt fell back to system_chat.en.jinja, whose first line is "Please always respond in English, regardless of the language of previous messages", so Czech hosts got Czech chat titles on English chat bodies.

ussaama added 2 commits August 3, 2026 09:20
## What this changes

- Czech gets the same 10 prompt templates Italian and Ukrainian have,
  written in Czech rather than English with a "write in Czech" instruction
  — system_chat, context_conversations, system_report,
  generate_conversation_summary, get_reply_system (incl. the PII redaction
  block), get_reply_brainstorm, get_reply_summarize, summary,
  translate_transcription, default_whisper_prompt
- Czech is selectable as a project language: ALLOWED_LANGUAGES in
  service/project.py, the zod enum and the language dropdown in
  ProjectPortalEditor.tsx (the dropdown had no Czech option at all)
- The prompt-template support matrix logs a cs column — prompts.py
- The language picker no longer clips its last entry: Mantine's 220px
  default dropdown height cut Czech off — LanguagePicker.tsx

Why: #657 added cs-CZ as an interface and portal locale but no prompt
templates. render_prompt fell back to system_chat.en.jinja, whose first
line is "Please always respond in English, regardless of the language of
previous messages", so Czech hosts got Czech chat titles on English chat
bodies.
@ussaama
ussaama merged commit 59c87bc into main Aug 3, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant