From 9b969986544cb94a6db07247e6ad0f8da3b0fe41 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Wed, 29 Apr 2026 11:57:18 +0200 Subject: [PATCH] Fix: Topic "Alle laden" always searches in EN (topics are English word lists) When user selects DE and types "Auge", the topic "Eye/Auge" is found correctly. But "Alle laden" must search words with lang=en because the topic word list is English (eye, pupil, iris...). Co-Authored-By: Claude Opus 4.6 (1M context) --- studio-v2/app/vocabulary/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio-v2/app/vocabulary/page.tsx b/studio-v2/app/vocabulary/page.tsx index b949e0a..2365f61 100644 --- a/studio-v2/app/vocabulary/page.tsx +++ b/studio-v2/app/vocabulary/page.tsx @@ -244,7 +244,7 @@ export default function VocabularyPage() { setIsSearching(true) const topicWords: VocabWord[] = [] for (const w of topic.words) { - const r = await fetch(`${getApiBase()}/api/vocabulary/search?q=${encodeURIComponent(w)}&lang=${searchLang}&limit=1&source=kaikki`) + const r = await fetch(`${getApiBase()}/api/vocabulary/search?q=${encodeURIComponent(w)}&lang=en&limit=1&source=kaikki`) if (r.ok) { const d = await r.json() if (d.words?.[0]) topicWords.push(d.words[0])